Update .vimrc
This commit is contained in:
parent
f29854f808
commit
11ddd3a39b
1 changed files with 5 additions and 4 deletions
|
@ -37,7 +37,7 @@ set t_Co=256
|
||||||
set background=dark
|
set background=dark
|
||||||
set nowrap
|
set nowrap
|
||||||
"Buffer movement, going to go to harpoon soon to try to get away from buffer
|
"Buffer movement, going to go to harpoon soon to try to get away from buffer
|
||||||
"switch inefficiency.
|
"switch inefficiency
|
||||||
nmap <C-h> :bp<cr>
|
nmap <C-h> :bp<cr>
|
||||||
nmap <C-l> :bn<cr>
|
nmap <C-l> :bn<cr>
|
||||||
nmap <C-q> :Bclose<cr>
|
nmap <C-q> :Bclose<cr>
|
||||||
|
@ -51,8 +51,9 @@ inoremap <expr> <cr> pumvisible() ? "\<Tab>" : "\<cr>"
|
||||||
autocmd BufNewFile,BufRead *.html,*.txt,*.blog set spell
|
autocmd BufNewFile,BufRead *.html,*.txt,*.blog set spell
|
||||||
autocmd BufNewFile,BufRead *.html,*.txt,*.blog set wrap
|
autocmd BufNewFile,BufRead *.html,*.txt,*.blog set wrap
|
||||||
"Load only on Lisp, Clojure, or Emacs Lisp files for rainbow parens
|
"Load only on Lisp, Clojure, or Emacs Lisp files for rainbow parens
|
||||||
au FileType clj,lisp,lsp,cl,l,el,elc,eln call rainbow#load()
|
au FileType clojure,lisp,lsp,cl,l,el,elc,eln call rainbow#load()
|
||||||
"Toggle on by default
|
"Toggle on rainbow parens by default if the following file type is detected
|
||||||
if (&ft=="clj") || (&ft=="lisp") || (&ft=="lsp") || (&ft=="el") || (&ft=="eln") || (&ft=="l") || (&ft=="cl") || (&ft=="elc")
|
let fts=['clojure', 'lisp', 'lsp', 'cl', 'el', 'eln', 'l', 'elc']
|
||||||
|
if index(fts, &filetype) != -1
|
||||||
:RainbowToggle
|
:RainbowToggle
|
||||||
endif
|
endif
|
||||||
|
|
Loading…
Reference in a new issue