"Changes added below as shown in video Vim (18) "Map F3 to toggle on and off the line numbers in Normal mode nmap :set nu! "Map F4 to toggle on and off the Relative line numbers in Normal mode nmap :set rnu! "Map F3 to toggle on and off the line numbers in INSERT mode imap :set nu! i "Map F4 to toggle on and off the Relative line numbers in INSERT mode imap :set rnu! i "########################################################### "# Re-assign arrow keys to No Operation (in sert mode too) # "########################################################### "nnoremap "nnoremap "nnoremap "nnoremap " "inoremap "inoremap "inoremap "inoremap "########################################################### "# Autocorrect Dictionary # "########################################################### abbr ture true abbr flase false abbr emailF the frugalcomputerguy@yahoo.com "########################################################### "# Set Default Search highlighting ON (Off commented out) # "########################################################### :set hlsearch :set incsearch "Set Default Search Highlighting OFF ":set noincsearch ":set nohsearch "########################################################### "# The line below will update: # "# The tab character to → unicode u2192 # "# The end of line character to ↲ unicode u21b2 # "########################################################### set listchars=tab:→\ ,eol:↲ "########################################################### "# Change settings by filetype: # "########################################################### "set ts=4 sw=4 sts=4 noexpandtab "autocmd Filetype perl setlocal ts=2 sw=2 sts=2 noexpandtab "autocmd Filetype css setlocal ts=4 sw=4 sts=4 expandtab filetype plugin on " Check output after typing ":filetype" " ":scriptnames" (shows a list of files that Vim has sources) " filetype indent on " set smartindent " autocmd BufRead,BufWritePro *.sh normal gg=G filetype indent on "########################################################### "# lines to save text folding: # "########################################################### autocmd BufWinLeave *.* mkview autocmd BufWinEnter *.* silent loadview "########################################################### "# "# The lines below are shown in video 33 - netrw pt3 "# "########################################################### "############################################################ "# This group of text starts the code the netrw plugin "############################################################ "Map F5 to toggle on and off the line numbers in Normal mode nmap gh " These next 2 lines will hide the dot files on startup let ghregex='\(^\|\s\s\)\zs\.\S\+' let g:netrw_list_hide=ghregex "Map F6 to toggle on and off the banner nmap I "#Turn off the banner at the top of the sreen on startup let g:netrw_banner=0 "# to change the way netrw shows the files and directorys "let g:netrw_liststyle= 0 " Default view (directory name/file name) "let g:netrw_liststyle= 1 " Show time and size "let g:netrw_liststyle= 2 " Shows listing in 2 columns let g:netrw_liststyle= 3 " show the tree listing "# Set the split windows to always be equal and open splits to the right let g:netrw_winsize = 0 " set default window size to be always equal let g:netrw_preview = 1 " open splits to the right "############################################################ "## Updates to .vimrc for Vim video 34 - START ## "############################################################ " Per default, netrw leaves unmodified buffers open. This autocommand " deletes netrw's buffer once it's hidden (using ':q;, for example) autocmd FileType netrw setl bufhidden=delete " or use :qa! "These next three lines are for the fuzzy search: set nocompatible "Limit search to your project set path+=** "Search all subdirectories and recursively set wildmenu "Shows multiple matches on one line "############################################################ "## Updates to .vimrc for Vim video 34 - END ## "############################################################ " nmap [q :cnext nmap ]q :cprev nmap [Q :cfirst nmap [Q :clast "############################################################ "## Updates to .vimrc for Vim video 40 - START ## "############################################################ "set runtimepath^=~/.vim/color/badwolf-master colorscheme pablo "############################################################ "## Updates to .vimrc for Vim video 40 - END ## "############################################################ "############################################################ "## Updates to .vimrc for Vim video 41 - START ## "############################################################ "call plug#begin('~/.vim/plugged') "Plug 'scrooloose/syntastic' "call plug#end() "let g:syntastic_check_on_open = 1 "let g:syntastic_check_on_wq = 0 "let g:syntastic_enable_perl_checker = 1 "let g:syntastic_perl_checkers = ['perl','podchecker'] "############################################################ "## Updates to .vimrc for Vim video 41 - END ## "############################################################