" Bindings
imap jj <Esc>

" Toggle spell check
nmap <silent> <leader>z :set spell!<CR>

" Start a search and replace for current word
map <Leader>rw :%s/\<<C-r><C-w>\>/

" Insert new line without going into insert mode
map <F9> O<Esc>
map <F8> o<Esc>

" map NERDtree shortcut
map <C-n> :NERDTreeToggle<CR>

" Run all specs
map <Leader>rsa :call Send_to_Tmux("bundle exec rspec spec\n")<CR>

" Run all specs/features
map <Leader>rsf :call Send_to_Tmux("bundle exec rspec spec/features\n")<CR>

map <F5> :setlocal spell! spelllang=en_us<cr>
imap <F5> <ESC> :setlocal spell! spelllang=en_us<cr>

" Bindings
imap jj <Esc>

" Toggle spell check
nmap <silent> <leader>z :set spell!<CR>

" Start a search and replace for current word
map <Leader>rw :%s/\<<C-r><C-w>\>/

" Insert new line without going into insert mode
map <F9> O<Esc>
map <F8> o<Esc>

" map NERDtree shortcut
map <C-n> :NERDTreeToggle<CR>

" Run all specs
map <Leader>rsa :call Send_to_Tmux("bundle exec rspec spec\n")<CR>

" Run all specs/features
map <Leader>rsf :call Send_to_Tmux("bundle exec rspec spec/features\n")<CR>

map <F5> :setlocal spell! spelllang=en_us<cr>
imap <F5> <ESC> :setlocal spell! spelllang=en_us<cr>

map <Leader>sas :w !sudo tee %<CR>

Add key binding to save vim file as sudo
Add key binding to save vim file as sudo

tryant/dotfiles,tryant/dotfiles,tryant/dotfiles