mirror of
https://github.com/Hizenberg469/Vim-tutorials.git
synced 2026-04-19 22:02:24 +03:00
navigation
This commit is contained in:
86
vimrc-sample
Normal file
86
vimrc-sample
Normal file
@@ -0,0 +1,86 @@
|
||||
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||
" Sample vimrc "
|
||||
" "
|
||||
" Provided by: "
|
||||
" LinuxTrainingAcademy.com "
|
||||
" "
|
||||
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||
|
||||
" Save 1,000 items in history
|
||||
set history=1000
|
||||
|
||||
" Show the line and column number of the cursor position
|
||||
set ruler
|
||||
|
||||
" Display the incomplete commands in the bottom right-hand side of your screen.
|
||||
set showcmd
|
||||
|
||||
" Display completion matches on your status line
|
||||
set wildmenu
|
||||
|
||||
" Show a few lines of context around the cursor
|
||||
set scrolloff=5
|
||||
|
||||
" Highlight search matches
|
||||
set hlsearch
|
||||
|
||||
" Enable incremental searching
|
||||
set incsearch
|
||||
|
||||
" Ignore case when searching
|
||||
set ignorecase
|
||||
|
||||
" Override the 'ignorecase' option if the search pattern contains upper case characters.
|
||||
set smartcase
|
||||
|
||||
" Turn on line numbering
|
||||
set number
|
||||
|
||||
" Turn on file backups
|
||||
set backup
|
||||
|
||||
" Don't line wrap mid-word.
|
||||
set lbr
|
||||
|
||||
" Copy the indentation from the current line.
|
||||
set autoindent
|
||||
|
||||
" Enable smart autoindenting.
|
||||
set smartindent
|
||||
|
||||
" Use spaces instead of tabs
|
||||
set expandtab
|
||||
|
||||
" Enable smart tabs
|
||||
set smarttab
|
||||
|
||||
" Make a tab equal to 4 spaces
|
||||
set shiftwidth=4
|
||||
set tabstop=4
|
||||
|
||||
|
||||
" Specifiy a color scheme.
|
||||
colorscheme slate
|
||||
|
||||
" Tell vim what background you are using
|
||||
" set bg=light
|
||||
" set bg=dark
|
||||
|
||||
" Map Y to act like D and C, i.e. yank until EOL, rather than act like yy
|
||||
" map Y y$
|
||||
|
||||
" Remap VIM 0 to first non-blank character
|
||||
" map 0 ^
|
||||
|
||||
" Easily create HTML unorded lists.
|
||||
map <F3> i<ul><CR><Space><Space><li></li><CR><Esc>I</ul><Esc>kcit
|
||||
map <F4> <Esc>o<li></li><Esc>cit
|
||||
|
||||
" change the mapleader from \ to ,
|
||||
" NOTE: This has to be set before <leader> is used.
|
||||
let mapleader=","
|
||||
|
||||
" Quickly save your file.
|
||||
map <leader>w :w!<cr>
|
||||
|
||||
" For more options see ":help option-list" and ":options".
|
||||
Reference in New Issue
Block a user