dotfiles/vimrc/.vimrc

40 lines
617 B
VimL
Raw Normal View History

2022-07-14 04:21:21 +00:00
" Set
filetype indent plugin on
" Syntax highlighting
2022-03-12 21:38:58 +00:00
syntax on
2022-07-14 04:21:21 +00:00
" Add number rows
set number
" No swap file
set noswapfile
" Incremental search & highlight
set incsearch
set hls
" Runtime path
let $RTP=split(&runtimepath, ',')[0]
let $RC="$HOME/.vimrc"
" Set default path
set path=.,**
2022-07-31 20:13:01 +00:00
" Plugin stuff
execute pathogen#infect()
" Always show file name
set laststatus=2
2022-08-03 00:07:53 +00:00
" Enter to insert blank line below current, Shift+Enter to insert above
map <Enter> o<ESC>
map <S-Enter> O<ESC>
2022-07-31 20:13:01 +00:00
" Folding (move to python specific vim file?)
set foldmethod=indent
set foldnestmax=2
nnoremap <space> za
vnoremap <space> zf