Skip to content

Commit

Permalink
settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Bilalh committed Apr 14, 2015
1 parent 8855a83 commit b3e2490
Showing 1 changed file with 24 additions and 5 deletions.
29 changes: 24 additions & 5 deletions .nvimrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@

" Install vim-plug if it does not exist
if empty(glob('~/.nvim/autoload/plug.vim'))
silent !curl -fLo ~/.nvim/autoload/plug.vim --create-dirs
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
autocmd VimEnter * PlugInstall
endif

" Plugins {{{
call plug#begin('~/.nvim/plugged')

Expand Down Expand Up @@ -33,8 +41,10 @@ Plug 'rking/ag.vim'
Plug 'rizzatti/dash.vim'
" Essence syntax
Plug '~/.vim/bundle/essence'

Plug 'nathanaelkane/vim-indent-guides'
" Indent guides
Plug 'Yggdroot/indentLine'
" json
Plug 'elzr/vim-json'

call plug#end()
" }}}
Expand Down Expand Up @@ -92,6 +102,10 @@ vnoremap p <Esc>:let current_reg = @"<CR>gvdi<C-R>=current_reg<CR><Esc>"
" yank to sys board
vmap ,p "*y<CR>
" Disable highlight when <leader><cr> is pressed
" but preserve cursor coloring
nmap <silent> <leader><cr> :noh\|hi Cursor guibg=red<cr>
" }}}

" Spacing {{{
Expand Down Expand Up @@ -128,6 +142,12 @@ set laststatus=2
set listchars=tab:‣\ ,trail:¸
set list

" Line wraping
set showbreak=

let g:indentLine_enabled =0


" Pressing ,ss will toggle and untoggle spell checking
map <leader>ss :setlocal spell!<cr>
Expand Down Expand Up @@ -191,9 +211,6 @@ if has("autocmd")
endif
" }}}

" Disable highlight when <leader><cr> is pressed
" but preserve cursor coloring
nmap <silent> <leader><cr> :noh\|hi Cursor guibg=red<cr>

" Remember info about open buffers on close
set viminfo^=%
Expand Down Expand Up @@ -239,6 +256,8 @@ nmap <silent> <leader>d <Plug>DashSearch
" nnoremap <silent> <Leader><space> :Unite file_rec/neovim<CR>
nnoremap <silent> <Leader><space> :FZF<CR>
nnoremap <Leader>w :IndentLinesToggle<CR>
" Airline {{{

if !exists('g:airline_symbols')
Expand Down

0 comments on commit b3e2490

Please sign in to comment.