aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkatherine <shmibs@shmibbles.me>2018-03-17 17:56:58 -0700
committerkatherine <shmibs@shmibbles.me>2018-03-17 17:56:58 -0700
commitdab6a604413f1f3def6f6e60c9a3e5e0ba69a1c8 (patch)
treeec73fbe2d6969f9fe147977e0dbd4dad950d5fa4
parentdb746f7f5e5ada0097697ff455d33983dabe4f8f (diff)
downloaddotfiles-dab6a604413f1f3def6f6e60c9a3e5e0ba69a1c8.tar.gz
add ultisnips in vimrc
-rw-r--r--.vimrc9
1 files changed, 9 insertions, 0 deletions
diff --git a/.vimrc b/.vimrc
index 7c4578c..658a5bc 100644
--- a/.vimrc
+++ b/.vimrc
@@ -45,6 +45,9 @@ Plugin 'itchyny/lightline.vim'
Plugin 'tomtom/tcomment_vim'
+Plugin 'SirVer/ultisnips'
+Plugin 'honza/vim-snippets'
+
call vundle#end()
@@ -64,6 +67,11 @@ set ttimeoutlen=100
"toggle gundo pane
nnoremap <Leader>u :GundoToggle<CR>
+"snippet bindings
+let g:UltiSnipsExpandTrigger="<tab>"
+let g:UltiSnipsJumpForwardTrigger="<c-m>"
+let g:UltiSnipsJumpBackwardTrigger="<c-,>"
+
"lightline colours. modded from 16color
function! s:Lightline_palette_init()
let l:black = [ '#000000', 0 ]
@@ -342,6 +350,7 @@ function! Settings_elixir()
setlocal softtabstop=2
"mappings
nnoremap <buffer> -- O#<Space>
+ inoremap <buffer> do<CR> end<Esc>hhido<CR><Esc>O
endfunction
function! Settings_haskell()