-
Notifications
You must be signed in to change notification settings - Fork 1
/
.nvimrc
116 lines (104 loc) · 3.8 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
" tabstop: Width of tab character
" softtabstop: Fine tunes the amount of white space to be added
" shiftwidth Determines the amount of whitespace to add in normal mode
" expandtab: When this option is enabled, vi will use spaces instead of tabs
set tabstop =4
set softtabstop =4
set shiftwidth =4
set expandtab
" ---
set clipboard=unnamedplus
nnoremap <Space> <nop>
:let mapleader = " "
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'
" The following are examples of different formats supported.
" Keep Plugin commands between vundle#begin/end.
" plugin on GitHub repo
Plugin 'tpope/vim-fugitive'
" plugin from http://vim-scripts.org/vim/scripts.html
" Plugin 'L9'
" Git plugin not hosted on GitHub
"Plugin 'git://git.wincent.com/command-t.git'
" git repos on your local machine (i.e. when working on your own plugin)
"Plugin 'file:///home/gmarik/path/to/plugin'
" The sparkup vim script is in a subdirectory of this repo called vim.
" Pass the path to set the runtimepath properly.
"Plugin 'rstacruz/sparkup', {'rtp': 'vim/'}
" Install L9 and avoid a Naming conflict if youve already installed a
" different version somewhere else.
" Plugin 'ascenator/L9', {'name': 'newL9'}
Plugin 'udalov/kotlin-vim'
Plugin 'git://github.com/tpope/vim-unimpaired.git'
Plugin 'tpope/vim-surround'
Plugin 'scrooloose/syntastic'
Plugin 'https://github.com/ctrlpvim/ctrlp.vim.git'
Plugin 'altercation/vim-colors-solarized'
Plugin 'vim-airline/vim-airline'
Plugin 'vim-airline/vim-airline-themes'
" Plugin 'valloric/youcompleteme'
Plugin 'easymotion/vim-easymotion'
Plugin 'tpope/vim-repeat'
Plugin 'rhysd/clever-f.vim'
Plugin 'justinmk/vim-sneak'
Plugin 'scrooloose/nerdtree'
Plugin 'iCyMind/NeoSolarized'
Plugin 'scrooloose/nerdcommenter'
Plugin 'NLKNguyen/papercolor-theme'
" All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on " required
" To ignore plugin indent changes, instead use:
"filetype plugin on
"
" Brief help
" :PluginList - lists configured plugins
" :PluginInstall - installs plugins; append `!` to update or just :PluginUpdate
" :PluginSearch foo - searches for foo; append `!` to refresh local cache
" :PluginClean - confirms removal of unused plugins; append `!` to auto-approve removal
"
" see :h vundle for more details or wiki for FAQ
" Put your non-Plugin stuff after this line
set statusline+=%#warningmsg#
set statusline+=%{SyntasticStatuslineFlag()}
set statusline+=%*
let g:syntastic_always_populate_loc_list = 1
let g:syntastic_auto_loc_list = 1
let g:syntastic_check_on_open = 1
let g:syntastic_check_on_wq = 0
syntax enable
set background=light
inoremap ii <Esc>
" inoremap jj <BS>
set number "Shows line numbers
colorscheme solarized
call togglebg#map("<F5>")
let g:airline_theme='solarized'
if has("nvim") && $TERM_PROGRAM == "iTerm.app"
" has true colour support and is nvim
set termguicolors
let $NVIM_TUI_ENABLE_TRUE_COLOR=1
colorscheme NeoSolarized
elseif $TERM_PROGRAM == "iTerm.app"
" has true colour support but is using std vim
set termguicolors
colorscheme NeoSolarized
else
"set termguicolors
set t_Co=256 " This is may or may not needed.
set background=light
colorscheme PaperColor
let g:airline_theme='papercolor'
endif
let g:ycm_server_keep_logfiles = 1
let g:ycm_server_log_level = 'debug'
au FileType crontab setlocal bkc=yes
map <Leader>n :NERDTreeFind<CR>
autocmd BufEnter * lcd %:p:h " configure Vim so that it sets the working directory to the current file's directory