-
Notifications
You must be signed in to change notification settings - Fork 0
/
nvimrc
81 lines (60 loc) · 1.76 KB
/
nvimrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
set nu
set nocompatible
set background=dark
set vb " To disable system beep - vim screen flashes instead
syntax on
filetype off
let g:python_host_prog='/bin/python2'
set rtp+=~/.nvim/bundle/Vundle.vim
" Some plugins
call vundle#begin()
" Let Vundle manage itself
Plugin 'gmarik/Vundle.vim'
"Plugin 'tpope/vim-vividchalk'
"Plugin 'vim-scripts/WuYe'
Plugin 'Valloric/YouCompleteMe'
"Plugin 'pangloss/vim-javascript'
"Plugin 'othree/html5.vim'
"Plugin 'scrooloose/syntastic'
"Plugin 'scrooloose/nerdtree'
call vundle#end()
filetype plugin indent on
" Mini code snippets that I find suitable for any kind of editing.
inoremap { {}<Left>
inoremap {<CR> {<CR>}<Esc>O
inoremap {{ {
inoremap {} {}
inoremap [ []<Left>
inoremap [] []
" Shortcut for translations in JSF files
"inoremap <C-s> #{tr.t("")}<Esc>hhi
" For easier browsing between splits
nnoremap <C-l> <C-w>l
nnoremap <C-k> <C-w>k
nnoremap <C-j> <C-w>j
nnoremap <C-h> <C-w>h
"inoremap <C-l> <Esc><C-w>l
"inoremap <C-k> <Esc><C-w>k
"inoremap <C-j> <Esc><C-w>j
"inoremap <C-h> <Esc><C-w>h
" For easier tabs browsing
nnoremap <C-n> :tabn<CR>
nnoremap <C-p> :tabp<CR>
" For easier buffer browsing
nnoremap <F12> :bnext<CR>
nnoremap <S-F12> :bprevious<CR>
" Comment
vnoremap <C-c> c//<Tab><Esc>
" autochdir helps for filename completion
" set autochdir
" autocmd FileType java set omnifunc=javacomplete#Complete
"set omnifunc=syntaxcomplete#Complete " Awesome simple builtin completion
" colorscheme vividchalk
"colorscheme desert
" For simple highlight over 80 characters
"highlight OverLength ctermbg=black guibg=black
"match OverLength /\%81v.\+/
set expandtab ts=4 sw=4 ai " set tabs to 4 spaces
set backupdir=/home/jgcouture/.nvim/backup
set directory=/home/jgcouture/.nvim/backup
set shell=/bin/bash