From d00fd666a9a4f3ca284c7ce82d4f4b053311923a Mon Sep 17 00:00:00 2001 From: PlexSheep Date: Mon, 23 Jan 2023 00:43:33 +0100 Subject: [PATCH] more localisation, some vim --- desktop-config.sh | 12 ++- home/{.configs => .config}/nvim/init.vim | 99 +++++++++---------- home/.config/nvim/noplug.vim | 69 +++++++++++++ .../.local}/share/fzf/completion.bash | 0 {usr => home/.local}/share/fzf/completion.zsh | 0 .../.local}/share/fzf/key-bindings.bash | 0 .../.local}/share/fzf/key-bindings.zsh | 0 {usr => home/.local}/share/nnn/plugins/.cbcp | 0 .../.local}/share/nnn/plugins/.iconlookup | 0 {usr => home/.local}/share/nnn/plugins/.nmv | 0 .../share/nnn/plugins/.nnn-plugin-helper | 0 {usr => home/.local}/share/nnn/plugins/.ntfy | 0 .../.local}/share/nnn/plugins/README.md | 0 .../.local}/share/nnn/plugins/autojump | 0 {usr => home/.local}/share/nnn/plugins/boom | 0 .../.local}/share/nnn/plugins/bulknew | 0 {usr => home/.local}/share/nnn/plugins/cdpath | 0 {usr => home/.local}/share/nnn/plugins/chksum | 0 {usr => home/.local}/share/nnn/plugins/cmusq | 0 {usr => home/.local}/share/nnn/plugins/diffs | 0 .../.local}/share/nnn/plugins/dragdrop | 0 {usr => home/.local}/share/nnn/plugins/dups | 0 {usr => home/.local}/share/nnn/plugins/finder | 0 .../.local}/share/nnn/plugins/fixname | 0 {usr => home/.local}/share/nnn/plugins/fzcd | 0 {usr => home/.local}/share/nnn/plugins/fzhist | 0 {usr => home/.local}/share/nnn/plugins/fzopen | 0 {usr => home/.local}/share/nnn/plugins/fzplug | 0 .../.local}/share/nnn/plugins/getplugs | 0 .../.local}/share/nnn/plugins/gitroot | 0 {usr => home/.local}/share/nnn/plugins/gpgd | 0 {usr => home/.local}/share/nnn/plugins/gpge | 0 .../.local}/share/nnn/plugins/gsconnect | 0 .../.local}/share/nnn/plugins/gutenread | 0 .../.local}/share/nnn/plugins/imgresize | 0 {usr => home/.local}/share/nnn/plugins/imgur | 0 .../.local}/share/nnn/plugins/imgview | 0 {usr => home/.local}/share/nnn/plugins/ipinfo | 0 .../.local}/share/nnn/plugins/kdeconnect | 0 {usr => home/.local}/share/nnn/plugins/launch | 0 .../.local}/share/nnn/plugins/mimelist | 0 .../.local}/share/nnn/plugins/moclyrics | 0 {usr => home/.local}/share/nnn/plugins/mocq | 0 .../.local}/share/nnn/plugins/mp3conv | 0 .../.local}/share/nnn/plugins/mtpmount | 0 {usr => home/.local}/share/nnn/plugins/nbak | 0 {usr => home/.local}/share/nnn/plugins/nmount | 0 {usr => home/.local}/share/nnn/plugins/nuke | 0 .../.local}/share/nnn/plugins/oldbigfile | 0 .../.local}/share/nnn/plugins/openall | 0 .../.local}/share/nnn/plugins/organize | 0 .../.local}/share/nnn/plugins/pdfread | 0 .../.local}/share/nnn/plugins/preview-tabbed | 0 .../.local}/share/nnn/plugins/preview-tui | 0 {usr => home/.local}/share/nnn/plugins/pskill | 0 .../.local}/share/nnn/plugins/renamer | 0 .../.local}/share/nnn/plugins/ringtone | 0 .../.local}/share/nnn/plugins/rsynccp | 0 .../.local}/share/nnn/plugins/splitjoin | 0 {usr => home/.local}/share/nnn/plugins/suedit | 0 .../.local}/share/nnn/plugins/togglex | 0 .../.local}/share/nnn/plugins/umounttree | 0 {usr => home/.local}/share/nnn/plugins/upload | 0 .../.local}/share/nnn/plugins/wallpaper | 0 {usr => home/.local}/share/nnn/plugins/x2sel | 0 .../.local}/share/nnn/plugins/xdgdefault | 0 .../.local}/share/nnn/quitcd/quitcd.bash_zsh | 0 .../.local}/share/nnn/quitcd/quitcd.csh | 0 .../.local}/share/nnn/quitcd/quitcd.elv | 0 .../.local}/share/nnn/quitcd/quitcd.fish | 0 home/.vimrc | 61 +++++++++--- 71 files changed, 177 insertions(+), 64 deletions(-) rename home/{.configs => .config}/nvim/init.vim (91%) create mode 100644 home/.config/nvim/noplug.vim rename {usr => home/.local}/share/fzf/completion.bash (100%) rename {usr => home/.local}/share/fzf/completion.zsh (100%) rename {usr => home/.local}/share/fzf/key-bindings.bash (100%) rename {usr => home/.local}/share/fzf/key-bindings.zsh (100%) rename {usr => home/.local}/share/nnn/plugins/.cbcp (100%) rename {usr => home/.local}/share/nnn/plugins/.iconlookup (100%) rename {usr => home/.local}/share/nnn/plugins/.nmv (100%) rename {usr => home/.local}/share/nnn/plugins/.nnn-plugin-helper (100%) rename {usr => home/.local}/share/nnn/plugins/.ntfy (100%) rename {usr => home/.local}/share/nnn/plugins/README.md (100%) rename {usr => home/.local}/share/nnn/plugins/autojump (100%) rename {usr => home/.local}/share/nnn/plugins/boom (100%) rename {usr => home/.local}/share/nnn/plugins/bulknew (100%) rename {usr => home/.local}/share/nnn/plugins/cdpath (100%) rename {usr => home/.local}/share/nnn/plugins/chksum (100%) rename {usr => home/.local}/share/nnn/plugins/cmusq (100%) rename {usr => home/.local}/share/nnn/plugins/diffs (100%) rename {usr => home/.local}/share/nnn/plugins/dragdrop (100%) rename {usr => home/.local}/share/nnn/plugins/dups (100%) rename {usr => home/.local}/share/nnn/plugins/finder (100%) rename {usr => home/.local}/share/nnn/plugins/fixname (100%) rename {usr => home/.local}/share/nnn/plugins/fzcd (100%) rename {usr => home/.local}/share/nnn/plugins/fzhist (100%) rename {usr => home/.local}/share/nnn/plugins/fzopen (100%) rename {usr => home/.local}/share/nnn/plugins/fzplug (100%) rename {usr => home/.local}/share/nnn/plugins/getplugs (100%) rename {usr => home/.local}/share/nnn/plugins/gitroot (100%) rename {usr => home/.local}/share/nnn/plugins/gpgd (100%) rename {usr => home/.local}/share/nnn/plugins/gpge (100%) rename {usr => home/.local}/share/nnn/plugins/gsconnect (100%) rename {usr => home/.local}/share/nnn/plugins/gutenread (100%) rename {usr => home/.local}/share/nnn/plugins/imgresize (100%) rename {usr => home/.local}/share/nnn/plugins/imgur (100%) rename {usr => home/.local}/share/nnn/plugins/imgview (100%) rename {usr => home/.local}/share/nnn/plugins/ipinfo (100%) rename {usr => home/.local}/share/nnn/plugins/kdeconnect (100%) rename {usr => home/.local}/share/nnn/plugins/launch (100%) rename {usr => home/.local}/share/nnn/plugins/mimelist (100%) rename {usr => home/.local}/share/nnn/plugins/moclyrics (100%) rename {usr => home/.local}/share/nnn/plugins/mocq (100%) rename {usr => home/.local}/share/nnn/plugins/mp3conv (100%) rename {usr => home/.local}/share/nnn/plugins/mtpmount (100%) rename {usr => home/.local}/share/nnn/plugins/nbak (100%) rename {usr => home/.local}/share/nnn/plugins/nmount (100%) rename {usr => home/.local}/share/nnn/plugins/nuke (100%) rename {usr => home/.local}/share/nnn/plugins/oldbigfile (100%) rename {usr => home/.local}/share/nnn/plugins/openall (100%) rename {usr => home/.local}/share/nnn/plugins/organize (100%) rename {usr => home/.local}/share/nnn/plugins/pdfread (100%) rename {usr => home/.local}/share/nnn/plugins/preview-tabbed (100%) rename {usr => home/.local}/share/nnn/plugins/preview-tui (100%) rename {usr => home/.local}/share/nnn/plugins/pskill (100%) rename {usr => home/.local}/share/nnn/plugins/renamer (100%) rename {usr => home/.local}/share/nnn/plugins/ringtone (100%) rename {usr => home/.local}/share/nnn/plugins/rsynccp (100%) rename {usr => home/.local}/share/nnn/plugins/splitjoin (100%) rename {usr => home/.local}/share/nnn/plugins/suedit (100%) rename {usr => home/.local}/share/nnn/plugins/togglex (100%) rename {usr => home/.local}/share/nnn/plugins/umounttree (100%) rename {usr => home/.local}/share/nnn/plugins/upload (100%) rename {usr => home/.local}/share/nnn/plugins/wallpaper (100%) rename {usr => home/.local}/share/nnn/plugins/x2sel (100%) rename {usr => home/.local}/share/nnn/plugins/xdgdefault (100%) rename {usr => home/.local}/share/nnn/quitcd/quitcd.bash_zsh (100%) rename {usr => home/.local}/share/nnn/quitcd/quitcd.csh (100%) rename {usr => home/.local}/share/nnn/quitcd/quitcd.elv (100%) rename {usr => home/.local}/share/nnn/quitcd/quitcd.fish (100%) diff --git a/desktop-config.sh b/desktop-config.sh index 6ed250b..c7ca7b1 100644 --- a/desktop-config.sh +++ b/desktop-config.sh @@ -4,11 +4,19 @@ cp -r $(pwd)/home/.p10k.zsh ~ cp -r $(pwd)/home/.zsh ~ cp -r $(pwd)/home/.wakeonlan ~ cp -r $(pwd)/home/.vimrc ~ +cp -r $(pwd)/home/.local ~ +cp -r $(pwd)/home/.config ~ +cp -r $(pwd)/home/.tmux.conf ~ + +rm ~/.zsh-very-old +mv ~/.zsh-old ~/.zsh-very-old +mv ~/.zsh ~/.zsh-old rm ~/.zshrc-very-old mv ~/.zshrc-old ~/.zshrc-very-old mv ~/.zshrc ~/.zshrc-old + ln ~/.zsh/zshrc ~/.zshrc -cp -r $(pwd)/etc/* /etc -cp -r $(pwd)/usr/* /usr +#cp -r $(pwd)/etc/* /etc +#cp -r $(pwd)/usr/* /usr diff --git a/home/.configs/nvim/init.vim b/home/.config/nvim/init.vim similarity index 91% rename from home/.configs/nvim/init.vim rename to home/.config/nvim/init.vim index 3837ae2..96fe012 100644 --- a/home/.configs/nvim/init.vim +++ b/home/.config/nvim/init.vim @@ -1,8 +1,9 @@ -syntax on " syntax highlighting +syntax on " syntax highlighting + set nocompatible " disable compatibility to old-time vi -set showmatch " show matching -set ignorecase " case insensitive set mouse=v " middle-click paste with +set number +set nocompatible set hlsearch " highlight search set incsearch " incremental search set tabstop=4 " number of columns occupied by a tab @@ -12,23 +13,59 @@ set shiftwidth=4 " width for autoindents set autoindent " indent a new line the same amount as the line just typed set number " add line numbers set wildmode=longest,list " get bash-like tab completions -set cc=110 " set an 80 column border for good coding style -filetype plugin indent on "allow auto-indenting depending on file type -syntax on " syntax highlighting +set cc=100 " set an 100 column border for good coding style set mouse=a " enable mouse click -filetype plugin on set cursorline " highlight current cursorline set ttyfast " Speed up scrolling in Vim set fdm=syntax " foldingmethod syntax -set spell " enable spell check (may need to download language package) -" set noswapfile " disable creating swap file -" set backupdir=~/.cache/vim " Directory to store backup files. +"set spell " enable spell check (may need to download language package) +set timeout timeoutlen=400 + +" Avoid showing message extra message when using completion" +set shortmess+=c + +filetype plugin indent on "allow auto-indenting depending on file type +filetype plugin on -" colorscheme base16-default-dark " let g:indentLine_setColors = 0 let g:indentLine_char = '│' +" set timeout to wait for shortcuts with a prefix +noremap oo o +noremap OO O + +" hit f3 to toggle search highlighting" +nnoremap :set hlsearch! + +nnoremap +let mapleader=" " +map t :echo "leader tested!" +map h :noh + +" copy to system clipboard when leader is used. (note, install gvim for this) +vnoremap y "+y +nnoremap Y "+Y +nnoremap y "+y +nnoremap yy "+yy + +" open terminal with F12 +nnoremap :terminal + +" vsplit with , then " +map " :vsplit + +" split with , then %" +map % :split + +" :W to write file as root" +command W :SudaWrite + +" :E to open file as root" +command E :SudaRead + +" Set completeopt to have a better completion experience" +set completeopt=menuone,noinsert,noselect call plug#begin() Plug 'lambdalisue/suda.vim' @@ -41,7 +78,6 @@ Plug 'nvim-lualine/lualine.nvim' " nicer status line Plug 'neovim/nvim-lspconfig' " lsp config for easy setup of LSP Plug 'romgrk/barbar.nvim' " tabs for buffers Plug 'EdenEast/nightfox.nvim' " Vim-Plug -"Plug 'Yggdroot/indentLine' Plug 'numToStr/FTerm.nvim' " floating terminal, toggle with Plug 'kdheepak/lazygit.nvim' Plug 'hrsh7th/cmp-nvim-lsp' @@ -63,42 +99,6 @@ inoremap pumvisible() ? "\" : "\" " Set completeopt to have a better completion experience" set completeopt=menuone,noinsert,noselect -" Avoid showing message extra message when using completion" -set shortmess+=c - - -" hit f3 to toggle search highlighting" -nnoremap :set hlsearch! - -" is a variable that is by default '/' and is supposed to be -" used before user made mappings as it seems. It can be changed to -" whatever i want. -" - -" clipboard copy paste -" " Copy to clipboard -vnoremap y "+y -nnoremap Y "+yg_ -nnoremap y "+y -nnoremap yy "+yy - -" " Paste from clipboard -"nnoremap p "+p -"nnoremap P "+P -"vnoremap p "+p -"vnoremap P "+P - -" vsplit with , then " -map " :vsplit - -" split with , then %" -map % :split - -" :W to save file as root" -command W :SudaWrite - -" :E to open file as root" -command E :SudaRead " Open NvimTree with f5" nnoremap :NvimTreeToggle @@ -145,9 +145,8 @@ nnoremap bw BufferOrderByWindowNumber " :BarbarEnable - enables barbar (enabled by default) " :BarbarDisable - very bad command, should never be used " -nnoremap :terminal -" packages" +" packages packadd termdebug color carbonfox diff --git a/home/.config/nvim/noplug.vim b/home/.config/nvim/noplug.vim new file mode 100644 index 0000000..ee6fe4d --- /dev/null +++ b/home/.config/nvim/noplug.vim @@ -0,0 +1,69 @@ +syntax on " syntax highlighting + +set nocompatible " disable compatibility to old-time vi +set mouse=v " middle-click paste with +set number +set nocompatible +set hlsearch " highlight search +set incsearch " incremental search +set tabstop=4 " number of columns occupied by a tab +set softtabstop=4 " see multiple spaces as tabstops so does the right thing +set expandtab " converts tabs to white space +set shiftwidth=4 " width for autoindents +set autoindent " indent a new line the same amount as the line just typed +set number " add line numbers +set wildmode=longest,list " get bash-like tab completions +set cc=100 " set an 100 column border for good coding style +set mouse=a " enable mouse click +set cursorline " highlight current cursorline +set ttyfast " Speed up scrolling in Vim +set fdm=syntax " foldingmethod syntax +"set spell " enable spell check (may need to download language package) +set timeout timeoutlen=400 + +" Avoid showing message extra message when using completion" +set shortmess+=c + +filetype plugin indent on "allow auto-indenting depending on file type +filetype plugin on + + +" let g:indentLine_setColors = 0 +let g:indentLine_char = '│' + +" set timeout to wait for shortcuts with a prefix +noremap oo o +noremap OO O + +" hit f3 to toggle search highlighting" +nnoremap :set hlsearch! + +nnoremap +let mapleader=" " +map t :echo "leader tested!" +map h :noh + +" copy to system clipboard when leader is used. (note, install gvim for this) +vnoremap y "+y +nnoremap Y "+Y +nnoremap y "+y +nnoremap yy "+yy + +" open terminal with F12 +nnoremap :terminal + +" vsplit with , then " +map " :vsplit + +" split with , then %" +map % :split + +" :W to save file as root" +command W :SudaWrite + +" :E to open file as root" +command E :SudaRead +" Set completeopt to have a better completion experience" +set completeopt=menuone,noinsert,noselect +" packages +packadd termdebug diff --git a/usr/share/fzf/completion.bash b/home/.local/share/fzf/completion.bash similarity index 100% rename from usr/share/fzf/completion.bash rename to home/.local/share/fzf/completion.bash diff --git a/usr/share/fzf/completion.zsh b/home/.local/share/fzf/completion.zsh similarity index 100% rename from usr/share/fzf/completion.zsh rename to home/.local/share/fzf/completion.zsh diff --git a/usr/share/fzf/key-bindings.bash b/home/.local/share/fzf/key-bindings.bash similarity index 100% rename from usr/share/fzf/key-bindings.bash rename to home/.local/share/fzf/key-bindings.bash diff --git a/usr/share/fzf/key-bindings.zsh b/home/.local/share/fzf/key-bindings.zsh similarity index 100% rename from usr/share/fzf/key-bindings.zsh rename to home/.local/share/fzf/key-bindings.zsh diff --git a/usr/share/nnn/plugins/.cbcp b/home/.local/share/nnn/plugins/.cbcp similarity index 100% rename from usr/share/nnn/plugins/.cbcp rename to home/.local/share/nnn/plugins/.cbcp diff --git a/usr/share/nnn/plugins/.iconlookup b/home/.local/share/nnn/plugins/.iconlookup similarity index 100% rename from usr/share/nnn/plugins/.iconlookup rename to home/.local/share/nnn/plugins/.iconlookup diff --git a/usr/share/nnn/plugins/.nmv b/home/.local/share/nnn/plugins/.nmv similarity index 100% rename from usr/share/nnn/plugins/.nmv rename to home/.local/share/nnn/plugins/.nmv diff --git a/usr/share/nnn/plugins/.nnn-plugin-helper b/home/.local/share/nnn/plugins/.nnn-plugin-helper similarity index 100% rename from usr/share/nnn/plugins/.nnn-plugin-helper rename to home/.local/share/nnn/plugins/.nnn-plugin-helper diff --git a/usr/share/nnn/plugins/.ntfy b/home/.local/share/nnn/plugins/.ntfy similarity index 100% rename from usr/share/nnn/plugins/.ntfy rename to home/.local/share/nnn/plugins/.ntfy diff --git a/usr/share/nnn/plugins/README.md b/home/.local/share/nnn/plugins/README.md similarity index 100% rename from usr/share/nnn/plugins/README.md rename to home/.local/share/nnn/plugins/README.md diff --git a/usr/share/nnn/plugins/autojump b/home/.local/share/nnn/plugins/autojump similarity index 100% rename from usr/share/nnn/plugins/autojump rename to home/.local/share/nnn/plugins/autojump diff --git a/usr/share/nnn/plugins/boom b/home/.local/share/nnn/plugins/boom similarity index 100% rename from usr/share/nnn/plugins/boom rename to home/.local/share/nnn/plugins/boom diff --git a/usr/share/nnn/plugins/bulknew b/home/.local/share/nnn/plugins/bulknew similarity index 100% rename from usr/share/nnn/plugins/bulknew rename to home/.local/share/nnn/plugins/bulknew diff --git a/usr/share/nnn/plugins/cdpath b/home/.local/share/nnn/plugins/cdpath similarity index 100% rename from usr/share/nnn/plugins/cdpath rename to home/.local/share/nnn/plugins/cdpath diff --git a/usr/share/nnn/plugins/chksum b/home/.local/share/nnn/plugins/chksum similarity index 100% rename from usr/share/nnn/plugins/chksum rename to home/.local/share/nnn/plugins/chksum diff --git a/usr/share/nnn/plugins/cmusq b/home/.local/share/nnn/plugins/cmusq similarity index 100% rename from usr/share/nnn/plugins/cmusq rename to home/.local/share/nnn/plugins/cmusq diff --git a/usr/share/nnn/plugins/diffs b/home/.local/share/nnn/plugins/diffs similarity index 100% rename from usr/share/nnn/plugins/diffs rename to home/.local/share/nnn/plugins/diffs diff --git a/usr/share/nnn/plugins/dragdrop b/home/.local/share/nnn/plugins/dragdrop similarity index 100% rename from usr/share/nnn/plugins/dragdrop rename to home/.local/share/nnn/plugins/dragdrop diff --git a/usr/share/nnn/plugins/dups b/home/.local/share/nnn/plugins/dups similarity index 100% rename from usr/share/nnn/plugins/dups rename to home/.local/share/nnn/plugins/dups diff --git a/usr/share/nnn/plugins/finder b/home/.local/share/nnn/plugins/finder similarity index 100% rename from usr/share/nnn/plugins/finder rename to home/.local/share/nnn/plugins/finder diff --git a/usr/share/nnn/plugins/fixname b/home/.local/share/nnn/plugins/fixname similarity index 100% rename from usr/share/nnn/plugins/fixname rename to home/.local/share/nnn/plugins/fixname diff --git a/usr/share/nnn/plugins/fzcd b/home/.local/share/nnn/plugins/fzcd similarity index 100% rename from usr/share/nnn/plugins/fzcd rename to home/.local/share/nnn/plugins/fzcd diff --git a/usr/share/nnn/plugins/fzhist b/home/.local/share/nnn/plugins/fzhist similarity index 100% rename from usr/share/nnn/plugins/fzhist rename to home/.local/share/nnn/plugins/fzhist diff --git a/usr/share/nnn/plugins/fzopen b/home/.local/share/nnn/plugins/fzopen similarity index 100% rename from usr/share/nnn/plugins/fzopen rename to home/.local/share/nnn/plugins/fzopen diff --git a/usr/share/nnn/plugins/fzplug b/home/.local/share/nnn/plugins/fzplug similarity index 100% rename from usr/share/nnn/plugins/fzplug rename to home/.local/share/nnn/plugins/fzplug diff --git a/usr/share/nnn/plugins/getplugs b/home/.local/share/nnn/plugins/getplugs similarity index 100% rename from usr/share/nnn/plugins/getplugs rename to home/.local/share/nnn/plugins/getplugs diff --git a/usr/share/nnn/plugins/gitroot b/home/.local/share/nnn/plugins/gitroot similarity index 100% rename from usr/share/nnn/plugins/gitroot rename to home/.local/share/nnn/plugins/gitroot diff --git a/usr/share/nnn/plugins/gpgd b/home/.local/share/nnn/plugins/gpgd similarity index 100% rename from usr/share/nnn/plugins/gpgd rename to home/.local/share/nnn/plugins/gpgd diff --git a/usr/share/nnn/plugins/gpge b/home/.local/share/nnn/plugins/gpge similarity index 100% rename from usr/share/nnn/plugins/gpge rename to home/.local/share/nnn/plugins/gpge diff --git a/usr/share/nnn/plugins/gsconnect b/home/.local/share/nnn/plugins/gsconnect similarity index 100% rename from usr/share/nnn/plugins/gsconnect rename to home/.local/share/nnn/plugins/gsconnect diff --git a/usr/share/nnn/plugins/gutenread b/home/.local/share/nnn/plugins/gutenread similarity index 100% rename from usr/share/nnn/plugins/gutenread rename to home/.local/share/nnn/plugins/gutenread diff --git a/usr/share/nnn/plugins/imgresize b/home/.local/share/nnn/plugins/imgresize similarity index 100% rename from usr/share/nnn/plugins/imgresize rename to home/.local/share/nnn/plugins/imgresize diff --git a/usr/share/nnn/plugins/imgur b/home/.local/share/nnn/plugins/imgur similarity index 100% rename from usr/share/nnn/plugins/imgur rename to home/.local/share/nnn/plugins/imgur diff --git a/usr/share/nnn/plugins/imgview b/home/.local/share/nnn/plugins/imgview similarity index 100% rename from usr/share/nnn/plugins/imgview rename to home/.local/share/nnn/plugins/imgview diff --git a/usr/share/nnn/plugins/ipinfo b/home/.local/share/nnn/plugins/ipinfo similarity index 100% rename from usr/share/nnn/plugins/ipinfo rename to home/.local/share/nnn/plugins/ipinfo diff --git a/usr/share/nnn/plugins/kdeconnect b/home/.local/share/nnn/plugins/kdeconnect similarity index 100% rename from usr/share/nnn/plugins/kdeconnect rename to home/.local/share/nnn/plugins/kdeconnect diff --git a/usr/share/nnn/plugins/launch b/home/.local/share/nnn/plugins/launch similarity index 100% rename from usr/share/nnn/plugins/launch rename to home/.local/share/nnn/plugins/launch diff --git a/usr/share/nnn/plugins/mimelist b/home/.local/share/nnn/plugins/mimelist similarity index 100% rename from usr/share/nnn/plugins/mimelist rename to home/.local/share/nnn/plugins/mimelist diff --git a/usr/share/nnn/plugins/moclyrics b/home/.local/share/nnn/plugins/moclyrics similarity index 100% rename from usr/share/nnn/plugins/moclyrics rename to home/.local/share/nnn/plugins/moclyrics diff --git a/usr/share/nnn/plugins/mocq b/home/.local/share/nnn/plugins/mocq similarity index 100% rename from usr/share/nnn/plugins/mocq rename to home/.local/share/nnn/plugins/mocq diff --git a/usr/share/nnn/plugins/mp3conv b/home/.local/share/nnn/plugins/mp3conv similarity index 100% rename from usr/share/nnn/plugins/mp3conv rename to home/.local/share/nnn/plugins/mp3conv diff --git a/usr/share/nnn/plugins/mtpmount b/home/.local/share/nnn/plugins/mtpmount similarity index 100% rename from usr/share/nnn/plugins/mtpmount rename to home/.local/share/nnn/plugins/mtpmount diff --git a/usr/share/nnn/plugins/nbak b/home/.local/share/nnn/plugins/nbak similarity index 100% rename from usr/share/nnn/plugins/nbak rename to home/.local/share/nnn/plugins/nbak diff --git a/usr/share/nnn/plugins/nmount b/home/.local/share/nnn/plugins/nmount similarity index 100% rename from usr/share/nnn/plugins/nmount rename to home/.local/share/nnn/plugins/nmount diff --git a/usr/share/nnn/plugins/nuke b/home/.local/share/nnn/plugins/nuke similarity index 100% rename from usr/share/nnn/plugins/nuke rename to home/.local/share/nnn/plugins/nuke diff --git a/usr/share/nnn/plugins/oldbigfile b/home/.local/share/nnn/plugins/oldbigfile similarity index 100% rename from usr/share/nnn/plugins/oldbigfile rename to home/.local/share/nnn/plugins/oldbigfile diff --git a/usr/share/nnn/plugins/openall b/home/.local/share/nnn/plugins/openall similarity index 100% rename from usr/share/nnn/plugins/openall rename to home/.local/share/nnn/plugins/openall diff --git a/usr/share/nnn/plugins/organize b/home/.local/share/nnn/plugins/organize similarity index 100% rename from usr/share/nnn/plugins/organize rename to home/.local/share/nnn/plugins/organize diff --git a/usr/share/nnn/plugins/pdfread b/home/.local/share/nnn/plugins/pdfread similarity index 100% rename from usr/share/nnn/plugins/pdfread rename to home/.local/share/nnn/plugins/pdfread diff --git a/usr/share/nnn/plugins/preview-tabbed b/home/.local/share/nnn/plugins/preview-tabbed similarity index 100% rename from usr/share/nnn/plugins/preview-tabbed rename to home/.local/share/nnn/plugins/preview-tabbed diff --git a/usr/share/nnn/plugins/preview-tui b/home/.local/share/nnn/plugins/preview-tui similarity index 100% rename from usr/share/nnn/plugins/preview-tui rename to home/.local/share/nnn/plugins/preview-tui diff --git a/usr/share/nnn/plugins/pskill b/home/.local/share/nnn/plugins/pskill similarity index 100% rename from usr/share/nnn/plugins/pskill rename to home/.local/share/nnn/plugins/pskill diff --git a/usr/share/nnn/plugins/renamer b/home/.local/share/nnn/plugins/renamer similarity index 100% rename from usr/share/nnn/plugins/renamer rename to home/.local/share/nnn/plugins/renamer diff --git a/usr/share/nnn/plugins/ringtone b/home/.local/share/nnn/plugins/ringtone similarity index 100% rename from usr/share/nnn/plugins/ringtone rename to home/.local/share/nnn/plugins/ringtone diff --git a/usr/share/nnn/plugins/rsynccp b/home/.local/share/nnn/plugins/rsynccp similarity index 100% rename from usr/share/nnn/plugins/rsynccp rename to home/.local/share/nnn/plugins/rsynccp diff --git a/usr/share/nnn/plugins/splitjoin b/home/.local/share/nnn/plugins/splitjoin similarity index 100% rename from usr/share/nnn/plugins/splitjoin rename to home/.local/share/nnn/plugins/splitjoin diff --git a/usr/share/nnn/plugins/suedit b/home/.local/share/nnn/plugins/suedit similarity index 100% rename from usr/share/nnn/plugins/suedit rename to home/.local/share/nnn/plugins/suedit diff --git a/usr/share/nnn/plugins/togglex b/home/.local/share/nnn/plugins/togglex similarity index 100% rename from usr/share/nnn/plugins/togglex rename to home/.local/share/nnn/plugins/togglex diff --git a/usr/share/nnn/plugins/umounttree b/home/.local/share/nnn/plugins/umounttree similarity index 100% rename from usr/share/nnn/plugins/umounttree rename to home/.local/share/nnn/plugins/umounttree diff --git a/usr/share/nnn/plugins/upload b/home/.local/share/nnn/plugins/upload similarity index 100% rename from usr/share/nnn/plugins/upload rename to home/.local/share/nnn/plugins/upload diff --git a/usr/share/nnn/plugins/wallpaper b/home/.local/share/nnn/plugins/wallpaper similarity index 100% rename from usr/share/nnn/plugins/wallpaper rename to home/.local/share/nnn/plugins/wallpaper diff --git a/usr/share/nnn/plugins/x2sel b/home/.local/share/nnn/plugins/x2sel similarity index 100% rename from usr/share/nnn/plugins/x2sel rename to home/.local/share/nnn/plugins/x2sel diff --git a/usr/share/nnn/plugins/xdgdefault b/home/.local/share/nnn/plugins/xdgdefault similarity index 100% rename from usr/share/nnn/plugins/xdgdefault rename to home/.local/share/nnn/plugins/xdgdefault diff --git a/usr/share/nnn/quitcd/quitcd.bash_zsh b/home/.local/share/nnn/quitcd/quitcd.bash_zsh similarity index 100% rename from usr/share/nnn/quitcd/quitcd.bash_zsh rename to home/.local/share/nnn/quitcd/quitcd.bash_zsh diff --git a/usr/share/nnn/quitcd/quitcd.csh b/home/.local/share/nnn/quitcd/quitcd.csh similarity index 100% rename from usr/share/nnn/quitcd/quitcd.csh rename to home/.local/share/nnn/quitcd/quitcd.csh diff --git a/usr/share/nnn/quitcd/quitcd.elv b/home/.local/share/nnn/quitcd/quitcd.elv similarity index 100% rename from usr/share/nnn/quitcd/quitcd.elv rename to home/.local/share/nnn/quitcd/quitcd.elv diff --git a/usr/share/nnn/quitcd/quitcd.fish b/home/.local/share/nnn/quitcd/quitcd.fish similarity index 100% rename from usr/share/nnn/quitcd/quitcd.fish rename to home/.local/share/nnn/quitcd/quitcd.fish diff --git a/home/.vimrc b/home/.vimrc index 106507e..3c8b760 100644 --- a/home/.vimrc +++ b/home/.vimrc @@ -1,22 +1,59 @@ -syntax on +syntax on " syntax highlighting -set mouse=v -"set clipboard=unnamedplus +set nocompatible " disable compatibility to old-time vi +set mouse=v " middle-click paste with set number set nocompatible +set hlsearch " highlight search +set incsearch " incremental search +set tabstop=4 " number of columns occupied by a tab +set softtabstop=4 " see multiple spaces as tabstops so does the right thing +set expandtab " converts tabs to white space +set shiftwidth=4 " width for autoindents +set autoindent " indent a new line the same amount as the line just typed +set number " add line numbers +set wildmode=longest,list " get bash-like tab completions +set cc=100 " set an 100 column border for good coding style +set mouse=a " enable mouse click +set cursorline " highlight current cursorline +set ttyfast " Speed up scrolling in Vim +set fdm=syntax " foldingmethod syntax +"set spell " enable spell check (may need to download language package) +set timeout timeoutlen=400 + +" Avoid showing message extra message when using completion" +set shortmess+=c " set timeout to wait for shortcuts with a prefix -set timeout timeoutlen=200 noremap oo o noremap OO O -" F3 to toggle highlight. -let hlstate=0 -nnoremap :if (hlstate%2 == 0) \| nohlsearch \| else \| set hlsearch \| endif \| let hlstate=hlstate+1 +" hit f3 to toggle search highlighting" +nnoremap :set hlsearch! + +nnoremap +let mapleader=" " +map t :echo "leader tested!" +map h :noh -let mapleader = " " " map leader to space " copy to system clipboard when leader is used. (note, install gvim for this) -noremap y "+y -noremap yy "+yy -noremap p "+p -noremap P "+P +vnoremap y "+y +nnoremap Y "+Y +nnoremap y "+y +nnoremap yy "+yy + +" open terminal with F12 +nnoremap :terminal + +" vsplit with , then " +map " :vsplit + +" split with , then %" +map % :split + +" :W to save file as root" +command W :w ! sudo tee % +" Set completeopt to have a better completion experience" +set completeopt=menuone,noinsert,noselect +" packages +packadd termdebug