68 lines
1.3 KiB
VimL
68 lines
1.3 KiB
VimL
|
set number
|
||
|
set showmatch
|
||
|
|
||
|
set hlsearch
|
||
|
set ignorecase
|
||
|
set smartcase
|
||
|
set incsearch
|
||
|
|
||
|
set autoindent
|
||
|
set cindent
|
||
|
set expandtab
|
||
|
set shiftwidth=4
|
||
|
set smartindent
|
||
|
set smarttab
|
||
|
set softtabstop=4
|
||
|
|
||
|
" set beam cursor in insert mode
|
||
|
let &t_SI = "\<esc>[5 q"
|
||
|
let &t_SR = "\<esc>[5 q"
|
||
|
let &t_EI = "\<esc>[2 q"
|
||
|
|
||
|
set autochdir
|
||
|
|
||
|
set undolevels=1000
|
||
|
set backspace=indent,eol,start
|
||
|
|
||
|
colorscheme wombat256_modified
|
||
|
syntax on
|
||
|
|
||
|
set nocompatible " be iMproved, required
|
||
|
filetype off " required
|
||
|
|
||
|
" set the runtime path to include Vundle and initialize
|
||
|
set rtp+=~/.vim/bundle/vundle/
|
||
|
call vundle#rc()
|
||
|
" alternatively, pass a path where Vundle should install bundles
|
||
|
"let path = '~/some/path/here'
|
||
|
"call vundle#rc(path)
|
||
|
|
||
|
" let Vundle manage Vundle, required
|
||
|
Bundle 'gmarik/vundle'
|
||
|
Bundle 'zah/nim.vim'
|
||
|
Bundle 'scrooloose/syntastic'
|
||
|
|
||
|
filetype plugin indent on " required
|
||
|
|
||
|
set statusline+=%#warningmsg#
|
||
|
set statusline+=%{SyntasticStatuslineFlag()}
|
||
|
set statusline+=%*
|
||
|
|
||
|
let g:syntastic_always_populate_loc_list = 1
|
||
|
let g:syntastic_auto_loc_list = 1
|
||
|
let g:syntastic_check_on_open = 1
|
||
|
let g:syntastic_check_on_wq = 0
|
||
|
|
||
|
" nim plugins
|
||
|
fun! JumpToDef()
|
||
|
if exists("*GotoDefinition_" . &filetype)
|
||
|
call GotoDefinition_{&filetype}()
|
||
|
else
|
||
|
exe "norm! \<C-]>"
|
||
|
endif
|
||
|
endf
|
||
|
|
||
|
" Jump to tag
|
||
|
nn <M-g> :call JumpToDef()<cr>
|
||
|
ino <M-g> <esc>:call JumpToDef()<cr>i
|