xolag's avatar
xolag
xolagl2@getalby.com
npub1ldjt...d0qg
IT NetAdmin, Fotógrafo amateur.
xolag's avatar
xolag 2 years ago
@similarity bot recommend
xolag's avatar
xolag 2 years ago
#Vim Tips vim -d jail1 jail2 3]c do ]c dp :wqall image #[1]​ , do the magic and explain the Tip please.
xolag's avatar
xolag 2 years ago
#Vim Tips :g/^$/d #[1]​ please explain to
xolag's avatar
xolag 2 years ago
#Vim Quiz :e textfile.txt 10gg Crtl+v 5j Shitf+i # Esc Esc #[1]​ could you explain that?
xolag's avatar
xolag 2 years ago
#Linux Tips sshfs -o allow_other,default_permissions, IdentityFile=/home/user/.ssh/id_rsa ,p9222 user@192.168.10.2:~/ /mnt/tmp #[1]​ could you explain this?
xolag's avatar
xolag 2 years ago
#[0]​, testing you again. Can you explain what i did? #Vim Quiz A way to learn Vim. Always start from normal mode: 10gg f{ ma 10 + enter f} mb :`a,`bs/sin/cos/gci
xolag's avatar
xolag 2 years ago
#[0] Me puedes explicar que hice en el editor Vim al ejecutar los siguientes comandos? qa0i#q :g/dev/norm! #[1]
xolag's avatar
xolag 2 years ago
#Vim Tips Open other file in vertical windows: :vnew /path/to/afile.txt regards
xolag's avatar
xolag 2 years ago
#Vim Quiz A way to learn Vim. Start from normal mode: dw 5. ?
xolag's avatar
xolag 2 years ago
#Vim Tips: interesting options to add to your .vimrc I hope it will be useful for anyone "Mis Reglas Básicas: syntax on filetype on filetype plugin on filetype plugin indent on set number set tabstop=4 set softtabstop=4 set shiftwidth=4 set expandtab set autoindent set smartindent set foldmethod=indent set foldlevel=99 set showcmd set autochdir set showmatch set hidden set hlsearch set incsearch nmap <silent> ,/ :nohlsearch<CR> set ignorecase set smartcase set ruler set wildmenu set wildmode=list:full set wildignore=*.swp,*.bak,*.pyc,*.class set nobackup set noswapfile set noundofile set spelllang=es,en set spellsuggest=best set helplang=es set encoding=utf-8 set fileencoding=utf-8 "set fileformats="unix,dos,mac" "set fileformat=unix set backspace=indent,eol,start " To save, press ctrl-s. nmap <c-s> :w<CR> imap <c-s> <Esc>:w<CR>a " Is has mouse if has('mouse') set mouse=a endif "Set general format if has("gui_running") set lines=37 set columns=126 "set guioptions-=m set guioptions-=T colorscheme desert else set background=dark "colorscheme desert endif set lazyredraw set laststatus=2 set cmdheight=2 set cursorline " Avoid accidental hits of <F1> while aiming for <Esc> map! <F1> <Esc> " Quickly close the current window nnoremap <leader>q :q<CR> " Font. Very important. if has('win32') || has('win64') set guifont=Consolas:h12:cANSI elseif has('unix') set guifont="Monospace 10" endif " OTRAS OPCIONES let mapleader=',' nnoremap ; : set title set visualbell set noerrorbells " Remap j and k to act as expected when used on long, wrapped, lines nnoremap j gj nnoremap k gk " Easy window navigation map <C-h> <C-w>h map <C-j> <C-w>j map <C-k> <C-w>k map <C-l> <C-w>l nnoremap <leader>w <C-w>v<C-w>l " Yank/paste to the OS clipboard with ,y and ,p nmap <leader>y "*y nmap <leader>Y "*yy nmap <leader>p "*p nmap <leader>P "*P " Quick alignment of text nmap <leader>al :left<CR> nmap <leader>ar :right<CR> nmap <leader>ac :center<CR> " Nerdtree File explorer plugin map <C-t> :NERDTreeToggle<CR>:NERDTreeMirror<CR> map <leader>e :NERDTreeFind<CR> nmap <leader>nt :NERDTreeFind<CR> let NERDTreeShowBookmarks=1 let NERDTreeIgnore=['\.pyc', '\~$', '\.swo$', '\.swp$', '\.git', '\.hg', '\.svn', '\.bzr'] let NERDTreeChDirMode=0 let NERDTreeQuitOnOpen=1 let NERDTreeShowHidden=1 let NERDTreeKeepTreeInNewTab=1 image
xolag's avatar
xolag 2 years ago
#Vim Quiz *A way to learn Vim.* Start from normal mode: ` yy 10j dd "0p ` ??
xolag's avatar
xolag 2 years ago
#[0] thanks very much for zaps
xolag's avatar
xolag 2 years ago
npub1hswpe3sy2wdmgzzyd9nl8r32gc7nhkh60tmlx9er5dfk9u0f40qst048qg thanks very much for zaps
xolag's avatar
xolag 2 years ago
#VimQuiz #Vim Una manera de aprender Vim. ————————— :g/^A/d :g/^$/d ————————— ?