-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
567 lines (500 loc) · 18.1 KB
/
.vimrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
" allow backspacing over everything in insert mode
set backspace=indent,eol,start
set backup " keep backup files
set backupdir=~/.tmp,~/
set directory=~/.tmp,~/
set autoread " reload files when changed outside of Vim
set history=50 " keep 50 lines of command line history
set number " show line number
set hidden " allow buffers to be hidden without write
set scrolloff=6 " start scrolling at 6 lines from edge
set wrap " soft wrap on edge of window (default on)
set breakindent " lines that wrap keep previous indentation
set linebreak " wrap lines without inserting newline
set gdefault " by default substitutions have 'g' flag
set modeline " turn on modelines
set modelines=5
set ttimeoutlen=10
set splitright
set splitbelow
set shiftround
filetype on
filetype indent on " load filetype-specific indent files
filetype plugin on
set background=dark
set laststatus=2 " always show the statusline
set encoding=utf-8 " necessary to show Unicode glyphs
set clipboard=unnamed " use system clipboard
set iskeyword-=_ " don't count `_` as part of a 'word'
set wildignore+=*.o,*.obj,*.a,*.lib,*.elf,*.dll,*.exe " ignore binaries
set wildignore+=*/tmp/*,*.so,*.swp,*.zip,*.png,*.html,*.doc,*.md5
set wildignore+=*.mobileprovision,*.py,*.js,*.png,*.sh,*.entitlements,*.plist,*.pch,*.json,*.rb
set printoptions=number:y,left:5pc,paper:letter
set printfont=MesloLGM\ Nerd\ Font:h9
set showmatch " highlight matching [{()}]
set matchtime=1 " 1/10s timeout to find match
" Visual selection of current line minus indentation, blockwise
nnoremap vv ^<C-v>g_
" Boolean values for terminal/OS logic
let os=substitute(system('uname'), '\n', '', '')
let hostname=substitute(system('hostname'), '\n', '', '')
let OSXTerminal=(os == 'Darwin' || os == 'Mac') && $TERM_PROGRAM == "Apple_Terminal"
let linuxConsole = (g:os == "Linux" && $TERM != "xterm-256color")
let linuxXterm = (g:os == "Linux" && $TERM == "xterm-256color")
let slowVim = hostname == "ereader" || $SHELL == "/bin/ash"
let sixteenColor = $SHELL == "/bin/ash"
if slowVim
set synmaxcol=200 " stop highlighting after 200 columns
endif
if has("macunix")
" Change cursor shape in different modesFor iTerm2 on OS X
let &t_SI = "\<Esc>]50;CursorShape=1\x7"
let &t_EI = "\<Esc>]50;CursorShape=0\x7"
endif
" Delete comment character when joining commented lines
if v:version > 703 || v:version == 703 && has("patch541")
set formatoptions+=j
endif
" current directory is always matching the
" content of the active window
set autochdir
" Don't use Ex mode, use Q for formatting
map Q gq
" CTRL-U in insert mode deletes a lot. Use CTRL-G u to first break undo,
" so that you can undo CTRL-U after inserting a line break.
inoremap <C-U> <C-G>u<C-U>
" Maintain undo history between sessions
set undofile
set undodir=~/.vim/undodir
" will buffer screen updates instead of updating all the time
" Show diff to a file, use :diffoff to turn off
if !exists(":DiffOrig")
command DiffOrig vert new | set bt=nofile | r ++edit # | 0d_ | diffthis
\ | wincmd p | diffthis
endif
" Auto Command Groups {{{
augroup vimrcEx
au!
" For all text files set 'textwidth' to 78 characters.
autocmd FileType text setlocal textwidth=78 expandtab shiftwidth=4
autocmd FileType yaml setlocal sts=2 sw=2
autocmd FileType sh setlocal ts=4 sts=4 sw=4 et
" When editing a file, always jump to the last known cursor position.
" Don't do it when the position is invalid or when inside an event handler
" (happens when dropping a file on gvim).
" Also don't do it when the mark is in the first line, that is the default
" position when opening a file.
autocmd BufReadPost *
\ if line("'\"") > 1 && line("'\"") <= line("$") |
\ exe "normal! g`\"" |
\ endif
" Don't expand tabs when editing vimrc
autocmd BufReadPost .vimrc setlocal noexpandtab
autocmd BufReadPost .gvimrc setlocal noexpandtab
" Source the vimrc file after saving it
autocmd bufwritepost .vimrc source $MYVIMRC
autocmd bufwritepost .vimrc silent! :AirlineRefresh
" Source .tmux.conf on save
autocmd bufwritepost .tmux.conf silent! :call system('tmux source-file ~/.tmux.conf &')
" Open files with folds open
autocmd BufWinEnter * silent! :%foldopen!
autocmd BufReadPost Podfile setlocal filetype=ruby
autocmd BufReadPost Fastfile setlocal filetype=ruby
autocmd BufReadPost Appfile setlocal filetype=ruby
" Private files don't write to disk https://vi.stackexchange.com/a/6678
au BufRead *.private setlocal history=0 nobackup noshelltemp noswapfile noundofile nowritebackup secure viminfo=""
augroup END
" set 'updatetime' to 3 seconds when in insert mode
" au InsertEnter * let updaterestore=&updatetime | set updatetime=3000
" au InsertLeave * let &updatetime=updaterestore
" automatically leave insert mode after 'updatetime' milliseconds of inaction
" au CursorHoldI * stopinsert
augroup LeaveInsert
au!
" Leave insert mode when vim loses focus
autocmd FocusLost * nested silent! wa
autocmd FocusLost * if mode()[0] =~ 'i\|R' | call feedkeys("\<Esc>") | endif
augroup END
if !slowVim
augroup CursorLine
au!
au VimEnter,WinEnter,BufWinEnter * setlocal cursorline
au VimEnter,WinEnter,BufWinEnter * setlocal cursorcolumn
au WinLeave * setlocal nocursorline
au WinLeave * setlocal nocursorcolumn
augroup END
endif
augroup Ledger
au!
" insert todays date
autocmd FileType ledger nnoremap <silent> <buffer> <localleader>t :read !date +"\%Y/\%m/\%d"<CR>A !<ESC>
" insert yesterdays date
autocmd FileType ledger nnoremap <silent> <buffer> <localleader>y :read !date -r $((`date +\%s` - 86400)) +"\%Y/\%m/\%d"<CR>A *<ESC>
" toggle transaction state betweeen * and !
autocmd FileType ledger nnoremap <silent> <buffer> <localleader>a :call ledger#transaction_state_toggle(line('.'), '*!')<CR>
" insert mta fare
"autocmd FileType ledger nnoremap <silent> <buffer> <localleader>m :read !date +"\%Y/\%m/\%d"<CR>A * MTA<CR>mta<TAB><TAB><TAB><TAB><TAB><TAB><TAB>$2.75<CR>alaska<CR><ESC>
autocmd FileType ledger nnoremap <silent> <buffer> <localleader>m :read !date -r $((`date +\%s` - 86400)) +"\%Y/\%m/\%d"<CR>A * MTA<CR>mta<TAB><TAB><TAB><TAB><TAB><TAB><TAB>$2.75<CR>alaska<CR><ESC>
" move cursor to day in yyyy/mm/dd
autocmd FileType ledger nnoremap <silent> <buffer> <localleader>dd 04w
" make date today
"autocmd FileType ledger nnoremap <silent> <buffer> <localleader>dt 0dW:read !date +"\%Y/\%m/\%d"<CR>
autocmd FileType ledger nnoremap <silent> <buffer> <localleader>dt 0dW:read !echo -n `date +"\%Y/\%m/\%d"`<CR>
au FileType ledger 1SpeedDatingFormat %Y%[/-]%m%1%d
augroup END
" }}}
" Plugins {{{
" Pathogen
if filereadable(expand("~/.vim/autoload/pathogen.vim"))
execute pathogen#infect()
syntax on
filetype plugin indent on
endif
set runtimepath^=~/.vim/bundle/ctrlp.vim
if filereadable(expand("~/.vim/autoload/pathogen.vim"))
" Solarize
" Switch syntax highlighting on, when the terminal has colors
" Also switch on highlighting the last used search pattern.
" if &t_Co > 2 || has("gui_running")
if g:os == "Linux"
let g:solarized_termcolors=256
endif
colorscheme solarized
if linuxConsole
colorscheme nord
endif
if sixteenColor
colorscheme slate
let g:airline_theme='nord'
endif
" endif
endif
" Airline
let g:airline#extensions#tabline#enabled = 1
if OSXTerminal || has("gui_macvim")
let g:airline_powerline_fonts = 1
endif
if has("macunix")
" Italics support
let &t_ZH="\e[3m"
let &t_ZR="\e[23m"
highlight Comment cterm=italic gui=italic
" mouse support
if !has('nvim')
set ttymouse=xterm2
endif
set mouse=a
endif
"if !exists('g:airline_powerline_fonts')
" let g:airline_left_sep='›'
" let g:airline_right_sep='‹'
"airline…
"showfonts…
"endif
if linuxConsole
let g:airline_symbols_ascii = 1
endif
if linuxXterm
if !exists('g:airline_symbols')
let g:airline_symbols = {}
endif
let g:airline_symbols.linenr = '¶'
let g:airline_symbols.whitespace = 'Ξ'
endif
if slowVim
let g:airline_theme='dark_minimal'
let g:airline_highlighting_cache = 1
endif
" Vim Hard Mode
"autocmd VimEnter,BufNewFile,BufReadPost * silent! call HardMode()
"nnoremap <LEADER>h <Esc>:call ToggleHardMode()<CR>
" Contrl-P
let g:ctrlp_custom_ignore = {
\ 'dir': '\v[\/]\.(git|hg|svn)$',
\ 'file': '\v\.(exe|so|dll|png|html|js|py|mobileprovision|plist)$',
\ 'link': 'some_bad_symbolic_links',
\ }
"}}}
" Leader {{{
" set leader key to spacebar
" let mapleader = "\<space>"
let maplocalleader = "["
" Insert space
nnoremap <LEADER><SPACE> i <Esc>l
" Insert new line below and return to line
nnoremap <LEADER><CR> mzo<Esc>`z
" Insert new line above and return to line
nnoremap <LEADER><S-CR> mzO<Esc>`z
" Setup command for unnamed register
nnoremap <LEADER>- "_
vnoremap <LEADER>- "_
" Insert line of "="
nnoremap <LEADER>= o<ESC>40i=<ESC>
" Insert line of "-"
nnoremap <LEADER>- o<ESC>40i-<ESC>
" Add semi colon to the end of current line
nnoremap <LEADER>; mzA;<ESC>`z
" A.vim alternative file
nnoremap <LEADER>a <ESC>:A<CR>
" Buffer management: list buffers
nnoremap <LEADER>b :buffers<CR>:buffer<Space>
" Buffer management: delete current buffer
nnoremap <LEADER>d :bd<CR>
" Buffer management: delete current buffer discarding changes
nnoremap <LEADER>D :bd!<CR>
" Buffer management: delete current buffer without closing window
nnoremap <LEADER>bc :bp<bar>sp<bar>bn<bar>bd<CR>
" Buffer management: next buffer
nnoremap <LEADER>n :bn<CR>
" Buffer management: previous buffer
nnoremap <LEADER>p :bp<CR>
" Edit .vimrc
nnoremap <LEADER>ev :e $MYVIMRC<CR>
" Edit .gvimrc
nnoremap <LEADER>eg :e $MYGVIMRC<CR>
" Reload .vimrc
nnoremap <LEADER>vs :so $MYVIMRC<CR>:nohlsearch<CR>:echom ".vrimrc sourced"<CR>
"Fugitive
nnoremap <LEADER>gd :Gdiff<CR>
nnoremap <LEADER>go <C-W><C-O>:diffoff<CR>
nnoremap <LEADER>gs :Gstatus<CR>
" Run marco stored in q register
nnoremap <LEADER>q @q
" yank line without whitespace, paste into ex command line
nnoremap <LEADER>r ^yg_:!<C-r>"
" Split line before cursor
nnoremap <LEADER>s hmzli<Enter><Esc>`z
" Split line after cursor
nnoremap <LEADER>S mza<Enter><Esc>`z
" Terminal run current line as command
nnoremap <LEADER>tb yy:!<C-r>"<BS><Enter>
" Write buffer and return to shell
nnoremap <LEADER>tz :w<Enter><C-z>
" Write q register to vimrc
nnoremap <LEADER>wq :call ADMSaveQMacro()<CR>
" Insert Date
nnoremap <LEADER>id o<ESC>:read !date +"\%Y/\%m/\%d \%A"<CR>o<ESC>40i-<ESC>j0
" }}}
" Splitting/Joining Lines {{{
" don't add an additional space when joining lines
set nojoinspaces
" https://www.reddit.com/r/vim/comments/3kcu6e/remapping_k_to_split_lines/
nmap K i<CR><Esc>d^==kg_lD
" }}}
" Whitespace {{{
" Trailing whitespace
" Show trailing whitespace only after some text (ignores empty lines):
" /\(\S\+\)\@<=\s\+$
" Remove trailing whitespace from line
" nnoremap <silent> <F5> :let _s=@/<Bar>:s/\s\+$//e<Bar>:let @/=_s<Bar>:nohl<CR>
" Remove trailing whitespace from line, and convert tabs to 4 spaces
nnoremap <silent> <F5> :let _s=@/<Bar>:s/\s\+$//e<Bar>:s/\t/\ \ \ \ /g<Bar>:let @/=_s<Bar>:nohl<CR>
" Nice vertical split
hi VertSplit ctermbg=None
set fillchars+=vert:│
" Listchars
set listchars=nbsp:∅,trail:␣,eol:¬,precedes:«,extends:»,tab:▸›
if has("patch-7.4.711") " This works as of Vim 7.4.711
set listchars+=space:·
endif
if has("patch-9.0.0")
set listchars+=lead:␣
endif
if linuxConsole
set listchars=nbsp:∅,trail:ж,eol:¬,precedes:«,extends:»,tab:┣→
if has("patch-7.4-711") " This works as of Vim 7.4.711
set listchars+=space:·
endif
endif
" Toggle viewing listchars ⇥
nnoremap <silent> <LEADER>. :set list!<CR>
nnoremap <silent> <LEADER>, :set nolist number! <BAR> AirlineToggle <BAR> nohlsearch<CR>
"set showbreak=↪\ " indicator to show wrapped line
"let g:airline_section_z = "%p%% %l %v %{strlen(getline('.'))}" " show real linke length
"let g:airline_section_z = "%3p%% %#__accent_bold#%{g:airline_symbols.linenr}%4l%#__restore#%#__accent_bold#/%L%{g:airline_symbols.maxlinenr}%#__restore__# :%3v %{strlen(getline('.'))}" " show real line length with default formatting
" quick highlight
nmap <Space>m <Plug>(quickhl-manual-this)
xmap <Space>m <Plug>(quickhl-manual-this)
nmap <Space>M <Plug>(quickhl-manual-reset)
xmap <Space>M <Plug>(quickhl-manual-reset)
" http://stackoverflow.com/questions/19233184/vim-using-listchars-to-show-leading-whitespace#comment28479060_19233184
" http://stackoverflow.com/questions/1675688/make-vim-show-all-white-spaces-as-a-character
let g:whitespace_syntax_type = 0
function! ToggleWhitespaceSyntax()
if g:whitespace_syntax_type == 0
let g:whitespace_previous_syntax=&syntax
set syntax=whitespace
let g:whitespace_syntax_type = 1
else
let &syntax=g:whitespace_previous_syntax
let g:whitespace_syntax_type = 0
endif
endfunction
" http://dougblack.io/words/a-good-vimrc.html
" strips trailing whitespace at the end of files. this
" is called on buffer write in the autogroup above.
function! <SID>StripTrailingWhitespaces()
" save last search & cursor position
let _s=@/
let l = line(".")
let c = col(".")
%s/\s\+$//e
let @/=_s
call cursor(l, c)
endfunction
" }}}
" Searching {{{
" After searching, press Ctrl-o to jump back to your previous position (then Ctrl-i will jump forwards).
set incsearch " do incremental searching
set ignorecase
set smartcase " ignore case in search unless search contains uppercase
set hlsearch " highlight matches
" clear search highlighting
nnoremap <silent> <LEADER>/ :nohlsearch<CR>
" git conflict seperator search
nnoremap <LEADER>c /<<<<<<<\\|=======\\|>>>>>>><CR>
" WORD equivalent to * and #
nnoremap q* /<C-r><C-a><CR>
nnoremap q# ?<C-r><C-a><CR>
" Super search
" https://gist.github.com/romainl/047aca21e338df7ccf771f96858edb86
nnoremap <LEADER>f :g//#<Left><Left>
function! CCR()
" grab the current command-line
let cmdline = getcmdline()
" does it end with '#' or 'number' or one of its abbreviations?
if cmdline =~ '\v\C/(#|nu|num|numb|numbe|number)$'
" press '<CR>' then ':' to enter command-line mode
return "\<CR>:"
else
" press '<CR>'
return "\<CR>"
endif
endfunction
" map '<CR>' in command-line mode to execute the function above
cnoremap <expr> <CR> CCR()
" }}}
" Disable Some Navigation {{{
cnoremap <C-a> <Home>
cnoremap <C-e> <End>
cnoremap <M-b> <S-Left>
cnoremap <M-r> <S-Right>
nnoremap <up> <nop>
nnoremap <down> <nop>
nnoremap <left> <nop>
nnoremap <right> <nop>
inoremap <up> <nop>
inoremap <down> <nop>
inoremap <left> <nop>
inoremap <right> <nop>
" }}}
" Macros {{{
"
" insert literal register <C-r><C-r>[register]
" insert special characters with <C-v>[special]
" There are issues with registers that end in a <CR> or <NL>
" setreg vs let @q = difference in let '' vs let ""
function! ADMSHOHit()
execute "s/%20/ /"
execute "s/%2C/,/"
execute "s/%5B/[/"
execute "s/%5D/]/"
execute "s/%3A/:/"
execute "s/?/\r/"
normal! j
execute "s/&/\r/"
execute "%sort"
endfunction
" Used to pretify profile.log generated from alias profvim
command! -bar ADMProfileTiminings let timings=[]
command! -bar ADMProfileg g/^SCRIPT/call add(timings, [getline('.')[len('SCRIPT '):], matchstr(getline(line('.')+1), '^Sourced \zs\d\+')]+map(getline(line('.')+2, line('.')+3), 'matchstr(v:val, ''\d\+\.\d\+$'')'))
command! -bar ADMProfileNew enew
command! -bar ADMProfileLine call setline('.', ['count total (s) self (s) script']+map(copy(timings), 'printf("%5u %9s %8s %s", v:val[1], v:val[2], v:val[3], v:val[0])'))
command! ADMProfile ADMProfileTiminings|ADMProfileg|ADMProfileNew|ADMProfileLine
" saved macros -- place cursor below then call Loadqregister to load it
" Gllllxgvhhhh~lGlx0GIi0"py$@pjqkbj
" Gllllxgvhhhh~lGlx0GIi
" Gllllxgvhhhh~lGlx0GIi0
" 0"py$@pld$j
function! ADMSaveQMacro()
execute "edit " . $MYVIMRC
normal! gg
normal! zR
let _s=@/
execute "normal! / saved macros\<CR>"
let @/=_s
execute "set textwidth=0"
execute "set wrapmargin=0"
execute 'normal! oq'
" 'noautocmd' allows the next command to run without
" autocmds, in this case sourcing .vimrc during write
execute 'noautocmd w'
execute 'bd'
endfunction
command! Loadqregister :call ADMLoadQRegister()
function! ADMLoadQRegister()
normal! 0
normal! w
normal! "qy$
endfunction
"https://stackoverflow.com/questions/2024443/saving-vim-macros#comment32271394_2024537
function! AdamMacro()
normal! xx0f,
" Get current letter.
normal! yl
if @" =~# '[,]'
execute "normal! $xxxxxIUIAlertAction *otherAction = [UIAlertAction actionWithTitle:\<ESC>ostyle:UIAlertActionStyleDefault\<CR>handler:^(UIAlertAction * _Nonnull action) { <#code#> }]; [alert addAction:otherAction];"
else
execute "normal! dd"
endif
endfunction
" }}}
" highlight last inserted text
nnoremap gV `[v`]
command! DiffScratchADM :call ADMScratchDiff()
" http://vimcasts.org/episodes/comparing-buffers-with-vimdiff/
function! ADMScratchDiff()
execute "vsp"
execute "ene"
execute "windo diffthis"
normal! h
normal! "*p
endfunction
" TODO:
" * https://github.com/ktonga/vim-follow-my-lead show list of all leader keys
" * create shortcut/function to map a keycommand to open the current filetypes
" ftplugin
" Debugging
" :verbose map [keycombo] OR :map [keycombo]
" A key with the Ctrl key modifier is represented using the <C-key> notation.
" A key with the Shift key modifier is represented using the <S-key> notation.
" A key with the Alt key modifier is represented using <A-key> or <M-key> notation.
" Super is represented <D-key> in MacVim and <T-key> in gtk2 gvim. In gvim it doesn't work with all the keys.
if executable('sourcekit-lsp')
au User lsp_setup call lsp#register_server({
\ 'name': 'sourcekit-lsp',
\ 'cmd': {server_info->['sourcekit-lsp']},
\ 'whitelist': ['swift'],
\ })
autocmd FileType swift setlocal omnifunc=lsp#complete
autocmd FileType swift nnoremap <C-]> :LspDefinition<CR>
endif
" https://github.com/vim/vim/issues/4738
if has('macunix')
function! OpenURLUnderCursor()
let s:uri = expand('<cWORD>')
let s:uri = matchstr(s:uri, '[a-z]*:\/\/[^ >,;()]*')
let s:uri = substitute(s:uri, '?', '\\?', '')
let s:uri = shellescape(s:uri, 1)
if s:uri != ''
silent exec "!open '".s:uri."'"
:redraw!
endif
endfunction
nnoremap gx :call OpenURLUnderCursor()<CR>
endif
" Universal help
nnoremap <silent> <F12> :botright sp<Bar>:e ~/git/dot-files/help/vim.txt<CR>