vim

[1]+ Stopped vim foo.py error, how to fix this?

て烟熏妆下的殇ゞ 提交于 2021-02-09 20:29:06
问题 whenever I run a python program from vim command like this: :!python foo.py after running the program, vim will stop and say this: [1]+ Stopped vim foo.py I don't know why there is such an error. I don't use the foo.py file in other application, but it just happened. In case you need, this is my .exerc file contents: set nu syntax on filetype on filetype indent on filetype plugin on set tabstop=4 set shiftwidth=4 set softtabstop=4 set shellcmdflag=-ic when I open the foo.py after running it,

[1]+ Stopped vim foo.py error, how to fix this?

帅比萌擦擦* 提交于 2021-02-09 20:26:07
问题 whenever I run a python program from vim command like this: :!python foo.py after running the program, vim will stop and say this: [1]+ Stopped vim foo.py I don't know why there is such an error. I don't use the foo.py file in other application, but it just happened. In case you need, this is my .exerc file contents: set nu syntax on filetype on filetype indent on filetype plugin on set tabstop=4 set shiftwidth=4 set softtabstop=4 set shellcmdflag=-ic when I open the foo.py after running it,

.vimrc: getting E474: Invalid argument: listchars=tab: no matter what I do

时光总嘲笑我的痴心妄想 提交于 2021-02-09 11:42:52
问题 I am getting an error with vim when loading it with a custom .vimrc file. Error : E474: Invalid argument: listchars=tab: I have tried many thing including putting these lines in my file: scriptencoding utf-8 set encoding=utf-8 set fileencoding=utf-8 set bomb So far with many hours of research I just can't find a fix, I know it is something to do with UTF-8 encoding but gain, I can't seem to find something helpful. Here is my .vimrc file scriptencoding utf-8 set encoding=utf-8 set fileencoding

Deleting lines of code in a text editor

孤人 提交于 2021-02-08 12:16:45
问题 Edit: This question had been tagged "Tolstoy" in appreciation of the quality and length of my writing:) Just reading the first and the last paragraph should be enough:) If you tend to select and move code with the mouse, the stuff in middle could be interesting to you. This question is about how you use text editors in general. I’m looking for the best way to delete a plurality of lines of code (no intent to patent it:) This extends to transposing lines, i.e. deleting and adding them

How to get Prettier working with js files in vim?

那年仲夏 提交于 2021-02-08 11:27:50
问题 I followed https://github.com/prettier/vim-prettier instructions and added // @format at the top of my .js files. I installed prettier with cd ~/.vim/bundle/ git clone https://github.com/prettier/vim-prettier but I can't see to get Prettier to work, either on file save or by using :Prettier at the ex command line. Nothing changes At the command line, when I run $ npx prettier-eslint $PWD/'**/*.js' I get newly formatted output as expected. package.json includes "devDependencies": { "eslint": "

Weird tmux vim through ssh [closed]

旧城冷巷雨未停 提交于 2021-02-08 10:55:37
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 7 years ago . Improve this question First I ssh into this server called thor , I set the bash prompt, before I start tmux it looks like following [1.9.3@lizhe] ~ → somecommand after I start tmux, it turns to this [1.9.3@lizhe] ~ → somecommand more space before somecommand , after typing an command I hit enter, it looks like

Weird tmux vim through ssh [closed]

你。 提交于 2021-02-08 10:53:35
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 7 years ago . Improve this question First I ssh into this server called thor , I set the bash prompt, before I start tmux it looks like following [1.9.3@lizhe] ~ → somecommand after I start tmux, it turns to this [1.9.3@lizhe] ~ → somecommand more space before somecommand , after typing an command I hit enter, it looks like

vim :AnsiEsc - how to have them on by default?

帅比萌擦擦* 提交于 2021-02-08 06:38:34
问题 I have log files (let say with the extension *.smt2) with colored log entries, where colors are defined by ansi escape codes. I installed the vim plugin based on AnsiEsc.vim. Now when I open my vim editor I need to type :AnsiEsc. How can I add :AnsiEsc to my .vimrc to be in my default view? 回答1: Your autocmd will only work for the first file that is passed as a command-line argument, as the :AnsiEsc command only applies to the current buffer. It will miss files opened via :edit or :split .

vim: what the best practice to sync up all plugins on multiple hosts

可紊 提交于 2021-02-08 05:19:16
问题 I am trying to start using a vim plugin management tool to manage my vim plugins, like vundle, and I have multiple hosts and want them syncing with vim settings. currently I am checking the .vim dir into a git repo. but I don’t want to check in all plugins as they belongs to others. Wonder what would be the best practice if I use the plugin management tool to keep them sync without checking in plugins code 回答1: if you used plugin mgmt, like vundle, you don't have to push your .vim dir to git

vim: what the best practice to sync up all plugins on multiple hosts

与世无争的帅哥 提交于 2021-02-08 05:18:40
问题 I am trying to start using a vim plugin management tool to manage my vim plugins, like vundle, and I have multiple hosts and want them syncing with vim settings. currently I am checking the .vim dir into a git repo. but I don’t want to check in all plugins as they belongs to others. Wonder what would be the best practice if I use the plugin management tool to keep them sync without checking in plugins code 回答1: if you used plugin mgmt, like vundle, you don't have to push your .vim dir to git