Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new changes for neovim #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 13 additions & 4 deletions .vim/init.vim
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ endif
" =========================================
" Keyboard config
" =========================================
let mapleader=";" "Leader Key
let g:mapleader=';' "Leader Key
noremap <leader>w :w<CR>
noremap <leader>ml :!mac lock<CR>

Expand All @@ -82,6 +82,10 @@ imap <right> <nop> " disable arrow keys
nmap <F2> :NERDTreeToggle<CR>
imap <F2> <esc>:NERDTreeToggle<CR>

" <C-\> - Open the definition in a new tab
map <C-\> :tab split<CR>:exec("tag ".expand("<cword>"))<CR> " Open the definition in a new tab
map ‘ :vsp <CR>:exec("tag ".expand("<cword>"))<CR> " Open the definition in a vertical split

" Mapping jj to <esc>
imap jj <esc>

Expand Down Expand Up @@ -184,6 +188,7 @@ augroup configgroup
autocmd BufEnter *.sh setlocal tabstop=2
autocmd BufEnter *.sh setlocal shiftwidth=2
autocmd BufEnter *.sh setlocal softtabstop=2
autocmd BufEnter *.ejson setlocal syntax=json
augroup END

let g:plug_url_format = 'https://git:@github.com/%s.git'
Expand All @@ -195,7 +200,7 @@ let g:plug_url_format = 'https://git:@github.com/%s.git'
" let g:syntastic_check_on_wq = 0

" Trigger configuration. Do not use <tab> if you use https://github.com/Valloric/YouCompleteMe.
let g:UltiSnipsExpandTrigger="<c-x>"
let g:UltiSnipsExpandTrigger="<c-z>"
let g:UltiSnipsJumpForwardTrigger="<c-b>"
let g:UltiSnipsJumpBackwardTrigger="<c-z>"

Expand Down Expand Up @@ -233,8 +238,9 @@ Plug 'ctrlpvim/ctrlp.vim'
Plug 'terryma/vim-multiple-cursors'
Plug 'jiangmiao/auto-pairs' "MANY features, but mostly closes ([{' etc
Plug 'tpope/vim-surround' "easily surround things...just read docs for info
Plug 'tomtom/tcomment_vim' "Comment easily with gcc
Plug 'tpope/vim-rails'
" Plug 'tomtom/tcomment_vim' "Comment easily with gcc
Plug 'tpope/vim-commentary'
" Plug 'tpope/vim-rails'
Plug 'vim-ruby/vim-ruby'
Plug 'tpope/vim-fugitive'
Plug 'rust-lang/rust.vim'
Expand All @@ -254,8 +260,11 @@ Plug 'wojtekmach/vim-rename'
Plug 'joshdick/onedark.vim'
Plug 'chriskempson/base16-vim'
Plug 'scrooloose/nerdtree'
Plug '~/dev/vim/vim-rails/'
Plug 'w0rp/ale'
Plug 'tpope/vim-endwise'
Plug 'vim-scripts/SyntaxRange'
Plug 'mbbill/undotree'
call plug#end()

" =========================================
Expand Down