Omni Completion находит шаблоны только для переменных, объявленных с ключевым словом var
.Переменные, объявленные с const
или let
, не найдены.
const apple
let blueberry
var carrot
// Omni Completion only finds patterns for 'carrot'
~ / .vimrc
"Start pathogen plugin manager
execute pathogen#infect()
"Enable syntax, changing font/colors
syntax on
"FILETYPE DETECTION
"Enable file type detection
filetype on
"Enable loading file type plugins
filetype plugin on
"Enable loading indent file
filetype indent on
"TABS
"expand tabs to spaces
set expandtab
"spaces for automatic indents
set shiftwidth=2
"make existing tabs appear like 2 spaces
set softtabstop=2
"MAPS
"map jk to escape
:inoremap jk <Esc>
"map omnicompletion to space
"/5037583/kak-mne-sopostavit-ctrl-x-ctrl-o-s-prostranstvom-ctrl-v-terminale-vim
"For some reason <C-Space> is interpreted as <C-@>
inoremap <C-@> <C-x><C-o>
"APPEARANCE
"turn on relative line numbers
set number relativenumber
"Omnicompletion (autocompletion)
set omnifunc=syntaxcomplete#Complete