"Changes added below as shown in video Vim (18) "Map key to comma let mapleader = ',' "Map F3 to toggle on and off the line numbers in Normal mode nmap :set nu! "Map F3 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 "########################################################### "# Text for video 26 - Folding Code - Start # "########################################################### autocmd BufWinLeave *.* mkview autocmd BufWinEnter *.* silent loadview "########################################################### "# Text for video 26 - Folding Code - End # "########################################################### "################################################################ "# # "# The lines in this section are shown in video 33 - netrw pt3 # "# # "# 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 baner 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 "################################################################# "# # "# End of text for video 33 - netrw pt3 # "# # "################################################################# "############################################################ "## 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 ## "############################################################