mirror of
https://github.com/m-housh/dotfiles.git
synced 2026-02-13 22:02:34 +00:00
Updates to vimrc
This commit is contained in:
@@ -3,43 +3,43 @@
|
|||||||
set autoindent
|
set autoindent
|
||||||
set autowrite " automatically write files when changing
|
set autowrite " automatically write files when changing
|
||||||
set background=dark
|
set background=dark
|
||||||
|
set backspace=indent,eol,start
|
||||||
|
set belloff=all
|
||||||
|
" set colorcolumn=120
|
||||||
|
set expandtab " replace tabs with spaces automatically
|
||||||
|
set exrc
|
||||||
|
set foldmethod=manual
|
||||||
|
set hidden
|
||||||
|
set history=100 " command history
|
||||||
|
set icon
|
||||||
|
set incsearch
|
||||||
|
set nobackup
|
||||||
|
set nocompatible
|
||||||
|
set nofixendofline
|
||||||
|
set nohlsearch
|
||||||
|
set noswapfile
|
||||||
|
set nowrap
|
||||||
|
set number
|
||||||
|
set relativenumber
|
||||||
set ruler " turns on col and row in lower right
|
set ruler " turns on col and row in lower right
|
||||||
" used with `set ruler`
|
" used with `set ruler`
|
||||||
set ruf=%30(%=%#LineNr#%.50F\ [%{strlen(&ft)?&ft:'none'}]\ %l:%c\ %p%%%)
|
set ruf=%30(%=%#LineNr#%.50F\ [%{strlen(&ft)?&ft:'none'}]\ %l:%c\ %p%%%)
|
||||||
set showmode " show command and insert mode
|
set scrolloff=8
|
||||||
set tabstop=2
|
|
||||||
set softtabstop=2
|
|
||||||
set shiftwidth=2
|
set shiftwidth=2
|
||||||
set expandtab " replace tabs with spaces automatically
|
set showmode " show command and insert mode
|
||||||
set textwidth=72
|
set signcolumn=no
|
||||||
set smartindent
|
set smartindent
|
||||||
set smarttab
|
set smarttab
|
||||||
set nofixendofline
|
set softtabstop=2
|
||||||
set foldmethod=manual
|
set tabstop=2
|
||||||
set exrc
|
set termguicolors
|
||||||
set relativenumber
|
set textwidth=200
|
||||||
set nohlsearch
|
set ttyfast " faster scrolling
|
||||||
set hidden
|
|
||||||
set nocompatible
|
|
||||||
set nu
|
|
||||||
set nowrap
|
|
||||||
set noswapfile
|
|
||||||
set nobackup
|
|
||||||
set undodir=~/.vim/undodir
|
set undodir=~/.vim/undodir
|
||||||
set undofile
|
set undofile
|
||||||
set icon
|
|
||||||
set incsearch
|
|
||||||
set termguicolors
|
|
||||||
set scrolloff=8
|
|
||||||
set signcolumn=yes
|
|
||||||
set colorcolumn=80
|
|
||||||
set noerrorbells
|
|
||||||
set number
|
|
||||||
set wildmenu
|
|
||||||
set ttyfast " faster scrolling
|
|
||||||
set viminfo='20,<1000,s1000 " prevents truncated yanks, deletes, etc.
|
set viminfo='20,<1000,s1000 " prevents truncated yanks, deletes, etc.
|
||||||
set hidden
|
set wildmenu
|
||||||
set history=100 " command history
|
|
||||||
syntax enable
|
syntax enable
|
||||||
filetype plugin on " sense the filesystem
|
filetype plugin on " sense the filesystem
|
||||||
let mapleader = " "
|
let mapleader = " "
|
||||||
@@ -68,9 +68,15 @@ colorscheme gruvbox
|
|||||||
" highlight Normal guibg=none
|
" highlight Normal guibg=none
|
||||||
|
|
||||||
" ----------------------- utilities ----------------------------------
|
" ----------------------- utilities ----------------------------------
|
||||||
" Edit/Reload vimr configuration file
|
|
||||||
nnoremap confe :e $HOME/.vimrc<CR>
|
" fuzzy finder
|
||||||
nnoremap confr :source $HOME/.vimrc<CR>
|
let g:fzf_layout = { 'window': { 'width': 0.9, 'height': 0.6 } }
|
||||||
|
|
||||||
|
" opens fuzzy finder under the current directory
|
||||||
|
nmap <leader>ff :call fzf#run(fzf#wrap({ 'source': 'find "$PWD" -type f' }))<CR>
|
||||||
|
" opens fuzzy finder for files under a git version control
|
||||||
|
nmap <leader>fg :call fzf#run(fzf#wrap({ 'source': 'git ls-files' }))<CR>
|
||||||
|
|
||||||
|
|
||||||
fun! TrimWhiteSpace()
|
fun! TrimWhiteSpace()
|
||||||
let l:save = winsaveview()
|
let l:save = winsaveview()
|
||||||
|
|||||||
@@ -161,6 +161,7 @@ alias g='git'
|
|||||||
alias ga='git add'
|
alias ga='git add'
|
||||||
alias gcb='git checkout -b'
|
alias gcb='git checkout -b'
|
||||||
alias gco='git checkout'
|
alias gco='git checkout'
|
||||||
|
alias gcm='git commit -m'
|
||||||
#alias gma() { git add . && git commit -m "$1" }
|
#alias gma() { git add . && git commit -m "$1" }
|
||||||
#alias gp() { git push }
|
#alias gp() { git push }
|
||||||
alias gs='git status'
|
alias gs='git status'
|
||||||
|
|||||||
Reference in New Issue
Block a user