]> git.r.bdr.sh - rbdr/dotfiles/blobdiff - vimrc
Remove tmux powerline url from gitmodules
[rbdr/dotfiles] / vimrc
diff --git a/vimrc b/vimrc
index 1eefa87b38bbee118e7ec5bb9660acf053855ee6..a9bf0d5cd46b4a56fd19efa0e7f91ea01d98542f 100755 (executable)
--- a/vimrc
+++ b/vimrc
@@ -79,6 +79,7 @@ set backspace=indent,eol,start
 " load the plugin and indent settings for the detected filetype
 filetype plugin indent on
 filetype plugin on
+set omnifunc=syntaxcomplete#Complete
 
 " Opens an edit command with the path of the currently edited file filled in
 " Normal mode: <Leader>e
@@ -110,8 +111,8 @@ set modeline
 set modelines=10
 
 " Default color scheme
-set t_Co=256
-color molokai
+set termguicolors
+color rbdr
 
 " Directories for swp files
 set backupdir=~/.vim/.backup
@@ -171,14 +172,6 @@ endfunction
 
 nnoremap <C-n> :call NumberToggle()<cr>
 
-" Syntastic stuff
-let g:syntastic_javascript_checkers = ['eslint']
-let g:syntastic_always_populate_loc_list = 1
-let g:syntastic_check_on_open = 1
-let g:syntastic_check_on_wq = 1
-let g:syntastic_error_symbol = "X"
-let g:syntastic_warning_symbol = "!"
-
 " Dank Mono Italics
 highlight Keyword cterm=italic
 
@@ -203,3 +196,14 @@ let g:fzf_colors =
   \ 'marker':  ['fg', 'Keyword'],
   \ 'spinner': ['fg', 'Label'],
   \ 'header':  ['fg', 'Comment'] }
+
+" ALE config
+let g:ale_linters = {'javascript': ['eslint']}
+
+" Move things up and down using Ctrl + Shift
+nnoremap <C-S-j> :m .+1<CR>==
+nnoremap <C-S-k> :m .-2<CR>==
+inoremap <C-S-j> <Esc>:m .+1<CR>==gi
+inoremap <C-S-k> <Esc>:m .-2<CR>==gi
+vnoremap <C-S-j> :m '>+1<CR>gv=gv
+vnoremap <C-S-k> :m '<-2<CR>gv=gv