[PYTHON] Use dein.vim and ckw-mod with Windows7 32bit PowerShell

table of contents

vim-KaoriYa --Pass the path to the downloaded and unzipped folder https://www.kaoriya.net/software/vim/

--Create vi.bat and put it in the same folder so that it can be started even if you type "vi"

vi.bat


vim %*

dein.vim --Create .vimrc in your home directory, create'dein.toml','dein_lazy.toml' in'~ / .vim / rc /'

--The runtime path had to be an absolute path, and the relative path says "Unknown function dein # begin" etc. --"syntax on" is only reflected after setting dein.vim

~/.vimrc


set tabstop=4
set shiftwidth=4
set hlsearch
set ignorecase
set smartcase
set smartindent
set expandtab

nmap <Esc><Esc> :nohlsearch<CR><Esc>

let s:dein_dir = expand('~/.cache/dein')
let s:dein_repo_dir = s:dein_dir . '/repos/github.com/Shougo/dein.vim'

"set runtimepath+=~/.vim/dein/repos/github.com/Shougo/dein.vim  "This was no good
set runtimepath+=C:\Users\USERNAME\.cache\dein\repos\github.com\Shougo\dein.vim  "Specified with an absolute path

if dein#load_state(s:dein_dir)
  call dein#begin(s:dein_dir)

  let g:rc_dir = expand('~/.vim/rc')
  let s:toml = g:rc_dir . '/dein.toml'
  let s:lazy_toml = g:rc_dir . '/dein_lazy.toml'

  call dein#load_toml(s:toml, {'lazy': 0})
  call dein#load_toml(s:lazy_toml, {'lazy': 1})

  call dein#end()
  call dein#save_state()

  if dein#check_install()
    call dein#install()
  endif
endif

syntax on

dein_lazy.toml


[[plugins]]
repo = 'cespare/vim-toml'
on_ft = 'toml'


# python
[[plugins]]
repo = 'davidhalter/jedi-vim'
on_ft = 'python'
on_i = 1
hook_add = '''
  autocmd FileType python setlocal completeopt-=preview
'''

[[plugins]]
repo = 'hynek/vim-python-pep8-indent'
on_ft = 'python'
on_i = 1

[[plugins]]
repo = 'andviro/flake8-vim'
on_ft = 'python'
on_i = 1

[[plugins]]
repo = 'scrooloose/syntastic'
on_ft = 'python'
hook_add = '''
  let g:syntastic_python_checkers = ['pyflakes', 'pep8']
'''

[[plugins]]
repo = 'tell-k/vim-autopep8'
on_ft = 'python'

ckw-mod --Download, unzip, and set in "ckw-cfg" file http://ckw-mod.github.io/ --For reference: http://softwaretest.jp/labo/tech/labo-267/

I think you like the settings, but ... --If the value of "Ckw * transp" is reduced, it becomes transparent. -"!" Is commented out --If powershell.exe does not have a path, write it with an absolute path

All you have to do is start ckw.exe every time

ckw.cfg


Ckw*title: ckw[cmd]
Ckw*exec:  c:\Windows\system32\WindowsPowerShell\v1.0\powershell.exe
Ckw*chdir: c:\Users\USERNAME

Ckw*scrollHide:  no
Ckw*scrollRight: yes
Ckw*internalBorder: 1
Ckw*lineSpace: 0
Ckw*topmost: no
Ckw*transp: 200

Ckw*font: MeiryoKe_Console
Ckw*fontSize: 12

Ckw*geometry:  100x38+0+0
Ckw*saveLines: 10000

Recommended Posts

Use dein.vim and ckw-mod with Windows7 32bit PowerShell
venv environment with windows powershell
Use Windows 10 fonts with WSL
How to use virtualenv with PowerShell
Build mlpy with python3.3 (64bit) (windows 64bit)
Use Tensorflow 2.1.0 with Anaconda on Windows 10!
Use Windows 10 speech synthesis with Python
Build a 64-bit Python 2.7 environment with TDM-GCC and MinGW-w64 on Windows 7
Use MeCab and neologd with Google Colab
Use Jupyter Lab and Jupyter Notebook with EC2
How to use Cmder with PyCharm (Windows)
Building a Python 3.6 environment with Windows + PowerShell
Use PIL and Pillow with Cygwin Python
Use TPU and Keras with Google Colaboratory
Easy! Use gensim and word2vec with MAMP.
Use Python and MeCab with Azure Functions
MacOS 10.11 environment construction: Powerline with Anaconda and Dein.vim
Install OpenCV 4.0 and Python 3.7 on Windows 10 with Anaconda
Linux (Bash) and Windows (PowerShell) command correspondence table
Use Python and word2vec (learned) with Azure Databricks
Use Python / Django with Windows Azure Cloud Service!
How to share folders with Docker and Windows with tensorflow
SparkFun moto: bit I2C operation and use from MicroPython
Ubuntu 20.04 on raspberry pi 4 with OpenCV and use with python
Linux (Bash) and Windows (Powershell) key binding correspondence table
Install tweepy with pip and use it for API 1.1